13
0

include winsock2.h on windows in libsmf for htons/l etc.

This commit is contained in:
Paul Davis 2013-07-11 13:03:24 -04:00
parent 8d1f88f87b
commit 2b9f50ffc7
4 changed files with 16 additions and 0 deletions

View File

@ -39,7 +39,11 @@
#include <assert.h>
#include <math.h>
#include <errno.h>
#ifdef WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
#include "smf.h"
#include "smf_private.h"

View File

@ -37,7 +37,11 @@
#include <assert.h>
#include <math.h>
#include <errno.h>
#ifdef WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
#include <stdint.h>
#include "smf.h"
#include "smf_private.h"

View File

@ -40,7 +40,11 @@
#include <math.h>
#include <errno.h>
#include <ctype.h>
#ifdef WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
#include "smf.h"
#include "smf_private.h"

View File

@ -39,7 +39,11 @@
#include <assert.h>
#include <math.h>
#include <errno.h>
#ifdef WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
#include "smf.h"
#include "smf_private.h"