]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/config/rs6000/aix.h
aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi is given.
[gcc.git] / gcc / config / rs6000 / aix.h
index 9f2b996b74ce3b45d920c6e2431ac8361039bf1c..fdd74d979ced093bff285ac8ad3dc1e450aa7365 100644 (file)
@@ -66,6 +66,13 @@ Boston, MA 02111-1307, USA.  */
 #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_LONG_LONG \
 -Asystem(unix) -Asystem(aix) -Acpu(rs6000) -Amachine(rs6000)"
 
+/* Define appropriate architecture macros for preprocessor depending on
+   target switches.  */
+
+#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
+   %{ansi: -D_ANSI_C_SOURCE}\
+   %(cpp_cpu)"
+
 /* Tell the assembler to assume that all undefined names are external.
 
    Don't do this until the fixed IBM assembler is more generally available.
This page took 0.028803 seconds and 5 git commands to generate.