Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Initial AIX portability fixes.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:14

Johannes Schindelin [off-list ref] writes:
Hi,

On Tue, 6 Dec 2005, Jason Riedy wrote:
quoted
-#define _XOPEN_SOURCE /* glibc2 needs this */
+#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */
+#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
Why not enclose the #define in #ifndef/#endif, and do the real magic in 
the Makefile? Within the AIX clause:

	ALL_CFLAGS += -D_XOPEN_SOURCE=500 -XOPEN_SOURCE_EXTENDED=1

This way the source does not get cluttered with platform dependent 
defines.
True but the original convert-objects.c defines _XOPEN_SOURCE on
all platforms not just AIX.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help