Permalink
Browse files

MFH: Fix compile error if _GNU_SOURCE is defined

  • Loading branch information...
1 parent a439cc7 commit 96a20f9aed82b7403a0a1b3d031684f1fd97a1ce Scott MacVicar committed May 9, 2008
Showing with 2 additions and 4 deletions.
  1. +2 −4 ext/standard/string.c
View
@@ -414,14 +414,12 @@ PHP_MINIT_FUNCTION(nl_langinfo)
#endif
#ifdef DECIMAL_POINT
REGISTER_NL_LANGINFO_CONSTANT(DECIMAL_POINT);
-#endif
-#ifdef RADIXCHAR
+#elif defined(RADIXCHAR)
REGISTER_NL_LANGINFO_CONSTANT(RADIXCHAR);
#endif
#ifdef THOUSANDS_SEP
REGISTER_NL_LANGINFO_CONSTANT(THOUSANDS_SEP);
-#endif
-#ifdef THOUSEP
+#elif defined(THOUSEP)
REGISTER_NL_LANGINFO_CONSTANT(THOUSEP);
#endif
#ifdef GROUPING

0 comments on commit 96a20f9

Please sign in to comment.