diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/pg_config.h.in | 3 | ||||
-rw-r--r-- | src/include/pg_config_manual.h | 16 |
2 files changed, 3 insertions, 16 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 3e78d65dd7a..465281c60ee 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -718,6 +718,9 @@ /* PostgreSQL major version as a string */ #undef PG_MAJORVERSION +/* Define to gnu_printf if compiler supports it, else printf. */ +#undef PG_PRINTF_ATTRIBUTE + /* Define to 1 if "static inline" works without unwanted warnings from compilations where static inline functions are defined but not called. */ #undef PG_USE_INLINE diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index 265dae064ef..b82f0f70bda 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -188,22 +188,6 @@ #define MAX_RANDOM_VALUE (0x7FFFFFFF) /* - * Set the format style used by gcc to check printf type functions. We really - * want the "gnu_printf" style set, which includes what glibc uses, such - * as %m for error strings and %lld for 64 bit long longs. But not all gcc - * compilers are known to support it, so we just use "printf" which all - * gcc versions alive are known to support, except on Windows where - * using "gnu_printf" style makes a dramatic difference. Maybe someday - * we'll have a configure test for this, if we ever discover use of more - * variants to be necessary. - */ -#ifdef WIN32 -#define PG_PRINTF_ATTRIBUTE gnu_printf -#else -#define PG_PRINTF_ATTRIBUTE printf -#endif - -/* * On PPC machines, decide whether to use the mutex hint bit in LWARX * instructions. Setting the hint bit will slightly improve spinlock * performance on POWER6 and later machines, but does nothing before that, |