Get the htonl/htons prototypes on all Unix-likes.

Clean up a few remnants of the --wiimote_plugin command-line option.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6277 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-10-13 13:18:17 +00:00
parent 77a3a5078e
commit 7c0cae9e8b
3 changed files with 2 additions and 9 deletions

View File

@ -35,6 +35,7 @@
#define DEFINITIONS_H_INCLUDED
#ifndef _WIN32
#include <arpa/inet.h> /* htons() */
#include "Log.h"
// NOTICE_LEVEL is more appropriate for the uses of WIIUSE_INFO than INFO_LEVEL
@ -68,7 +69,7 @@ char* file = __FILE__; \
#define WIIUSE_DEBUG(fmt, ...)
#endif
#endif
#endif // _WIN32
/* Convert to big endian */
#define BIG_ENDIAN_LONG(i) (htonl(i))

View File

@ -44,10 +44,6 @@
#ifndef WIIUSE_INTERNAL_H_INCLUDED
#define WIIUSE_INTERNAL_H_INCLUDED
#ifdef __linux__
#include <arpa/inet.h> /* htons() */
#endif
/* wiiuse version */
#define WIIUSE_VERSION "0.12"