diff --git a/desmume/src/common.h b/desmume/src/common.h index 6083bed4a..9a8b5a749 100644 --- a/desmume/src/common.h +++ b/desmume/src/common.h @@ -31,7 +31,7 @@ extern u8 gba_header_data_0x04[156]; #ifdef WIN32 - #define _WINSOCKAPI_ + #include #include #define IDT_VIEW_DISASM7 50001 diff --git a/desmume/src/windows/DeSmuME_2005.vcproj b/desmume/src/windows/DeSmuME_2005.vcproj index 405b81437..3f832d0ea 100644 --- a/desmume/src/windows/DeSmuME_2005.vcproj +++ b/desmume/src/windows/DeSmuME_2005.vcproj @@ -50,8 +50,8 @@ FavorSizeOrSpeed="0" EnableFiberSafeOptimizations="false" WholeProgramOptimization="false" - AdditionalIncludeDirectories=".;..;.\zlib123;.\zziplib;.\gdiplus" - PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32;BETA_VERSION;SPU_INTERPOLATE;HAVE_LIBZ;HAVE_LIBZZIP;NOMINMAX;DEBUG;WANTPROGINFO" + AdditionalIncludeDirectories=".;..;.\zlib123;.\zziplib;.\gdiplus;.\winpcap" + PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32;BETA_VERSION;SPU_INTERPOLATE;HAVE_LIBZ;HAVE_LIBZZIP;NOMINMAX;DEBUG;WANTPROGINFO;EXPERIMENTAL_WIFI" ExceptionHandling="1" BufferSecurityCheck="false" EnableEnhancedInstructionSet="0" @@ -73,7 +73,7 @@ /> + + + #include #include #include diff --git a/desmume/src/windows/inputdx.cpp b/desmume/src/windows/inputdx.cpp index 461e589af..315af4c72 100644 --- a/desmume/src/windows/inputdx.cpp +++ b/desmume/src/windows/inputdx.cpp @@ -27,6 +27,7 @@ #endif #define STRICT +#include #include #include #include diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index f7e5269f4..bcef7ecf7 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -34,6 +34,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include #include #include +#include #include "CWindow.h" #include "../MMU.h" #include "../armcpu.h" @@ -1199,6 +1200,16 @@ int WINAPI WinMain (HINSTANCE hThisInstance, int nFunsterStil) { + pcap_if_t *alldevs; + pcap_if_t *d; + int i = 0; + char errbuf[PCAP_ERRBUF_SIZE]; + + if ( pcap_findalldevs(&alldevs, errbuf) == -1 ) + { + printf("fail initializing pcap\n"); + } + ULONG_PTR GdiplusToken; GdiplusStartupInput GdiplusSI; diff --git a/desmume/src/windows/snddx.cpp b/desmume/src/windows/snddx.cpp index 0d726f3ed..eb56310a2 100755 --- a/desmume/src/windows/snddx.cpp +++ b/desmume/src/windows/snddx.cpp @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include "directx/dsound.h" #ifdef __MINGW32__