Define __STRICT_ANSI__ for Linux to eliminate spurious warnings. Checkin
for Chris Seawood <cls@seawood.org>. git-svn-id: svn://10.0.0.236/trunk@47367 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
effb7dd14d
commit
bee2f880f2
@ -41,7 +41,10 @@
|
||||
#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(), ... */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user