define __STRICT_ANSI__ for linux to suppress useless warnings when compiling mozilla unlabeled-3.6.24
authorcls%seawood.org
Sun, 12 Sep 1999 14:16:20 +0000
branchunlabeled-3.6.24
changeset 808 69a43d0fb57e36a9f319e0e3134883794d2a223b
parent 785 9cfd37498c535d3d68f191f47e15ddceba454784
push idunknown
push userunknown
push dateunknown
define __STRICT_ANSI__ for linux to suppress useless warnings when compiling mozilla
pr/include/prinet.h
--- a/pr/include/prinet.h
+++ b/pr/include/prinet.h
@@ -36,17 +36,20 @@
  *     This file is intended to be included by nspr20 public header
  *     files, such as prio.h.  One should not include this file directly.
  */
 
 #ifndef prinet_h__
 #define prinet_h__
 
 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
-
+#ifdef linux
+#undef __STRICT_ANSI__
+#define __STRICT_ANSI__
+#endif
 #include <sys/types.h>
 #include <sys/socket.h>		/* AF_INET */
 #include <netinet/in.h>         /* INADDR_ANY, ..., ntohl(), ... */
 #ifdef XP_OS2
 #include <sys/ioctl.h>
 #endif
 #ifdef XP_UNIX
 #ifdef AIX