]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/pkgdata/pkgdata.c
ICU-400.42.tar.gz
[apple/icu.git] / icuSources / tools / pkgdata / pkgdata.c
index 09f900fabcfa94efe558f2c2d8921df7f641bc75..8bdd9708318461259b3dab4033255b156cca4ade 100644 (file)
@@ -1,20 +1,30 @@
 /******************************************************************************
-*
-*   Copyright (C) 2000-2006, International Business Machines
-*   Corporation and others.  All Rights Reserved.
-*
-*******************************************************************************
-*   file name:  pkgdata.c
-*   encoding:   ANSI X3.4 (1968)
-*   tab size:   8 (not used)
-*   indentation:4
-*
-*   created on: 2000may15
-*   created by: Steven \u24C7 Loomis
-*
-*   This program packages the ICU data into different forms
-*   (DLL, common data, etc.)
-*/
+ *   Copyright (C) 2000-2007, International Business Machines
+ *   Corporation and others.  All Rights Reserved.
+ *******************************************************************************
+ *   file name:  pkgdata.c
+ *   encoding:   ANSI X3.4 (1968)
+ *   tab size:   8 (not used)
+ *   indentation:4
+ *
+ *   created on: 2000may15
+ *   created by: Steven \u24C7 Loomis
+ *
+ *   This program packages the ICU data into different forms
+ *   (DLL, common data, etc.)
+ */
+
+/*
+ * We define _XOPEN_SOURCE so that we can get popen and pclose.
+ */
+#if !defined(_XOPEN_SOURCE)
+#if __STDC_VERSION__ >= 199901L
+/* It is invalid to compile an XPG3, XPG4, XPG4v2 or XPG5 application using c99 on Solaris */
+#define _XOPEN_SOURCE 600
+#else
+#define _XOPEN_SOURCE 4
+#endif
+#endif
 
 #include "unicode/utypes.h"
 #include "unicode/putil.h"
 #include "putilimp.h"
 
 #if U_HAVE_POPEN
-/*
-  We define __USE_POSIX2 so that we can get popen and pclose when
-  --enable-strict is used
-*/
-# ifndef __USE_POSIX2
-#  define __USE_POSIX2 1
-# endif
 # include <unistd.h>
 #endif
 #include <stdio.h>