win32: sync visual studio project files. fixed: accidently included windows.h within...
authorLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Thu, 13 Oct 2011 17:52:34 +0000 (19:52 +0200)
committerLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Thu, 13 Oct 2011 17:52:34 +0000 (19:52 +0200)
include/cectypes.h
project/libcec.vcxproj
project/libcec.vcxproj.filters
project/testclient.vcxproj
project/testclient.vcxproj.filters
src/lib/LibCECDll.cpp

index f2d8e6710f2ff511e6b446531a67a8406c3af574..eee055264b8fbc7a2854bab53465dc3fd721a4de 100644 (file)
 
 #include <stdint.h>
 #include <string.h>
-#include <stdbool.h>
 
-#ifdef __cplusplus
-extern "C" {
-namespace CEC {
+#if !defined(_WIN32) && !defined(_WIN64)
+#include <stdbool.h>
 #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,
index 34f7817e9ba7612a1cffe9cd400222ec3fd2dea7..4ab6438800448b77ddd7d5eeabb51648f1b3e46c 100644 (file)
     </ProjectConfiguration>
   </ItemGroup>
   <ItemGroup>
-    <ClInclude Include="..\include\CECExports.h" />
-    <ClInclude Include="..\include\CECExportsC.h" />
-    <ClInclude Include="..\include\CECExportsCpp.h" />
-    <ClInclude Include="..\include\CECTypes.h" />
+    <ClInclude Include="..\include\cec.h" />
+    <ClInclude Include="..\include\cecc.h" />
+    <ClInclude Include="..\include\cecloader.h" />
+    <ClInclude Include="..\include\cectypes.h" />
     <ClInclude Include="..\src\lib\AdapterCommunication.h" />
     <ClInclude Include="..\src\lib\AdapterDetection.h" />
     <ClInclude Include="..\src\lib\CECProcessor.h" />
@@ -96,7 +96,7 @@
       <WarningLevel>Level4</WarningLevel>
       <Optimization>Disabled</Optimization>
       <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T;_WINSOCKAPI_;__STDC_CONSTANT_MACROS;__WINDOWS__;DLL_EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\src\lib\platform\pthread_win32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\src\lib\platform\pthread_win32;$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <DisableSpecificWarnings>4996;4100;4309;4505</DisableSpecificWarnings>
       <TreatWarningAsError>true</TreatWarningAsError>
     </ClCompile>
       <OutputFile>$(SolutionDir)..\libcec.dll</OutputFile>
       <AdditionalDependencies>%(AdditionalDependencies);setupapi.lib;$(SolutionDir)..\src\lib\platform\pthread_win32\pthreadVC2.lib</AdditionalDependencies>
       <IgnoreSpecificDefaultLibraries>libcmtd</IgnoreSpecificDefaultLibraries>
-      <Version>6</Version>
+      <Version>7</Version>
     </Link>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
index 7bd7b5949287ff97c75f54b1c38065713340803e..c677d84c1ef1045bda334fca4ff4bd5d89b30490 100644 (file)
     <ClInclude Include="..\src\lib\util\StdString.h">
       <Filter>util</Filter>
     </ClInclude>
-    <ClInclude Include="..\include\CECExports.h">
-      <Filter>exports</Filter>
-    </ClInclude>
-    <ClInclude Include="..\include\CECExportsCpp.h">
-      <Filter>exports</Filter>
-    </ClInclude>
-    <ClInclude Include="..\include\CECTypes.h">
-      <Filter>exports</Filter>
-    </ClInclude>
-    <ClInclude Include="..\include\CECExportsC.h">
-      <Filter>exports</Filter>
-    </ClInclude>
     <ClInclude Include="..\src\lib\AdapterCommunication.h" />
     <ClInclude Include="..\src\lib\AdapterDetection.h" />
     <ClInclude Include="..\src\lib\CECProcessor.h" />
     <ClInclude Include="..\src\lib\platform\pthread_win32\semaphore.h">
       <Filter>platform</Filter>
     </ClInclude>
+    <ClInclude Include="..\include\cec.h">
+      <Filter>exports</Filter>
+    </ClInclude>
+    <ClInclude Include="..\include\cecc.h">
+      <Filter>exports</Filter>
+    </ClInclude>
+    <ClInclude Include="..\include\cecloader.h">
+      <Filter>exports</Filter>
+    </ClInclude>
+    <ClInclude Include="..\include\cectypes.h">
+      <Filter>exports</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="..\src\lib\AdapterCommunication.cpp" />
index 13b32a7b2c8bb97128dfa4c14f08978a3399d672..d091b7dd9dd348cc61259fef96593aeed7bdf5b1 100644 (file)
       <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T;_WINSOCKAPI_;__STDC_CONSTANT_MACROS;__WINDOWS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <TreatWarningAsError>true</TreatWarningAsError>
       <DisableSpecificWarnings>4100;4309;4505</DisableSpecificWarnings>
+      <AdditionalIncludeDirectories>$(SolutiontDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <AdditionalDependencies>$(ProjectDir)..\src\lib\platform\pthread_win32\pthreadVC2.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <OutputFile>$(SolutionDir)..\cec-client.exe</OutputFile>
+      <Version>7</Version>
     </Link>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -85,8 +87,8 @@
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
-    <ClInclude Include="..\include\CECExports.h" />
-    <ClInclude Include="..\include\CECExportsCpp.h" />
+    <ClInclude Include="..\include\cec.h" />
+    <ClInclude Include="..\include\cecloader.h" />
     <ClInclude Include="..\src\lib\platform\os-dependent.h" />
     <ClInclude Include="..\src\lib\platform\threads.h" />
     <ClInclude Include="..\src\lib\platform\windows\os_windows.h" />
index 76735fba1074b00476c70608ea3ef1e7fac80a84..88bab57d33b96d527d9302d92fa3c12a1ddaff2c 100644 (file)
     </Filter>
   </ItemGroup>
   <ItemGroup>
-    <ClInclude Include="..\include\CECExports.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\include\CECExportsCpp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
     <ClInclude Include="..\src\lib\util\StdString.h">
       <Filter>Header Files</Filter>
     </ClInclude>
     <ClInclude Include="..\src\lib\platform\windows\os_windows.h">
       <Filter>Header Files</Filter>
     </ClInclude>
+    <ClInclude Include="..\include\cec.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\include\cecloader.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="..\src\testclient\main.cpp">
index fb0ed9ad7362c0ef585c440d018f7289ffff9086..14d9776aa43dfef386965f65009488a191306a44 100644 (file)
@@ -30,6 +30,8 @@
  *     http://www.pulse-eight.net/
  */
 
+#include <windows.h>
+
 int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
 {
   return 1;