From: Lars Op den Kamp Date: Thu, 13 Oct 2011 17:52:34 +0000 (+0200) Subject: win32: sync visual studio project files. fixed: accidently included windows.h within... X-Git-Tag: upstream/2.2.0~1^2~244 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cb9157778536cfca3ab8e4b98d60e08072887dd5;p=deb_libcec.git win32: sync visual studio project files. fixed: accidently included windows.h within a namespace tag; don't include stdbool.h on windows --- diff --git a/include/cectypes.h b/include/cectypes.h index f2d8e67..eee0552 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -36,11 +36,9 @@ #include #include -#include -#ifdef __cplusplus -extern "C" { -namespace CEC { +#if !defined(_WIN32) && !defined(_WIN64) +#include #endif #if !defined(DECLSPEC) @@ -56,6 +54,11 @@ namespace CEC { #endif #endif +#ifdef __cplusplus +extern "C" { +namespace CEC { +#endif + typedef enum { CEC_ABORT_REASON_UNRECOGNIZED_OPCODE = 0, diff --git a/project/libcec.vcxproj b/project/libcec.vcxproj index 34f7817..4ab6438 100644 --- a/project/libcec.vcxproj +++ b/project/libcec.vcxproj @@ -11,10 +11,10 @@ - - - - + + + + @@ -96,7 +96,7 @@ Level4 Disabled _CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T;_WINSOCKAPI_;__STDC_CONSTANT_MACROS;__WINDOWS__;DLL_EXPORT;%(PreprocessorDefinitions) - $(SolutionDir)..\src\lib\platform\pthread_win32;%(AdditionalIncludeDirectories) + $(SolutionDir)..\src\lib\platform\pthread_win32;$(SolutionDir)..\include;%(AdditionalIncludeDirectories) 4996;4100;4309;4505 true @@ -105,7 +105,7 @@ $(SolutionDir)..\libcec.dll %(AdditionalDependencies);setupapi.lib;$(SolutionDir)..\src\lib\platform\pthread_win32\pthreadVC2.lib libcmtd - 6 + 7 diff --git a/project/libcec.vcxproj.filters b/project/libcec.vcxproj.filters index 7bd7b59..c677d84 100644 --- a/project/libcec.vcxproj.filters +++ b/project/libcec.vcxproj.filters @@ -18,18 +18,6 @@ util - - exports - - - exports - - - exports - - - exports - @@ -64,6 +52,18 @@ platform + + exports + + + exports + + + exports + + + exports + diff --git a/project/testclient.vcxproj b/project/testclient.vcxproj index 13b32a7..d091b7d 100644 --- a/project/testclient.vcxproj +++ b/project/testclient.vcxproj @@ -56,12 +56,14 @@ WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T;_WINSOCKAPI_;__STDC_CONSTANT_MACROS;__WINDOWS__;%(PreprocessorDefinitions) true 4100;4309;4505 + $(SolutiontDir)..\include;%(AdditionalIncludeDirectories) Console true $(ProjectDir)..\src\lib\platform\pthread_win32\pthreadVC2.lib;%(AdditionalDependencies) $(SolutionDir)..\cec-client.exe + 7 @@ -85,8 +87,8 @@ - - + + diff --git a/project/testclient.vcxproj.filters b/project/testclient.vcxproj.filters index 76735fb..88bab57 100644 --- a/project/testclient.vcxproj.filters +++ b/project/testclient.vcxproj.filters @@ -15,12 +15,6 @@ - - Header Files - - - Header Files - Header Files @@ -33,6 +27,12 @@ Header Files + + Header Files + + + Header Files + diff --git a/src/lib/LibCECDll.cpp b/src/lib/LibCECDll.cpp index fb0ed9a..14d9776 100644 --- a/src/lib/LibCECDll.cpp +++ b/src/lib/LibCECDll.cpp @@ -30,6 +30,8 @@ * http://www.pulse-eight.net/ */ +#include + int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*) { return 1;