On Mon, 25 Mar 2013 13:15:17 -0400, Richard Hipp wrote: > Is there a predefined macro for AIX that we can use to make this setting > automatic? Something like "#ifdef __aix__"?
This is all new territory for me. My aim is to add portability to some of my own projects, so I'll be looking. This page might be accurate: http://nadeausoftware.com/articles/2012/01/ c_c_tip_how_use_compiler_predefined_macros_detect_operating_system will test... ..ok tested === aixtest.c ==== #include <stdio.h> int main(void) { #if defined(_AIX) printf("this should be AIX\n"); #else printf("probably not compiled on AIX\n"); #endif return 0; } ============= > gcc aixtest.c > ./a.out this should be AIX > xlc aixtest.c > ./a.out this should be AIX On the other hand this may be more of a file system specific issue rather than an OS specific one. I would say just doing the above test would be perfectly acceptable. -- C. Thomas Stover www.thomasstover.com _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users