Browse Source

win32: fix libcheck.vcxproj etc. to work with check 0.11.0

master
goldsimon 9 years ago
parent
commit
49eea34252
  1. 1
      ports/win32/check/check_stdint.h
  2. 6
      ports/win32/check/config.h
  3. 9
      ports/win32/check/stdbool.h
  4. 3
      ports/win32/msvc/libcheck.vcxproj
  5. 9
      ports/win32/msvc/libcheck.vcxproj.filters

1
ports/win32/check/check_stdint.h

@ -0,0 +1 @@
/* deliberateliy empty */

6
ports/win32/check/config.h

@ -1,4 +1,4 @@
/* config.h for check-0.9.8 on win32 under MSVC/MinGW */
/* config.h for check-0.11.0 on win32 under MSVC/MinGW */
#ifdef _MSC_VER
@ -24,3 +24,7 @@ typedef unsigned int uint32_t;
#define LWIP_UNITTESTS_NOFORK
#include <io.h>
typedef unsigned int clockid_t;
typedef unsigned int timer_t;
#define STRUCT_TIMESPEC_DEFINITION_MISSING

9
ports/win32/check/stdbool.h

@ -0,0 +1,9 @@
#ifndef MY_STDBOOL_H
#define MY_STDBOOL_H
typedef int bool;
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#endif

3
ports/win32/msvc/libcheck.vcxproj

@ -66,6 +66,7 @@
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\..\..\..\check\lib\libcompat.h" />
<ClInclude Include="..\check\config.h" />
<ClInclude Include="..\check\unistd.h" />
<ClInclude Include="..\check\sys\time.h" />
@ -80,6 +81,8 @@
<ClInclude Include="..\..\..\..\check\src\check_str.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\check\lib\clock_gettime.c" />
<ClCompile Include="..\..\..\..\check\lib\libcompat.c" />
<ClCompile Include="..\check\time.c" />
<ClCompile Include="..\..\..\..\check\src\check.c" />
<ClCompile Include="..\..\..\..\check\src\check_error.c" />

9
ports/win32/msvc/libcheck.vcxproj.filters

@ -51,6 +51,9 @@
<ClInclude Include="..\..\..\..\check\src\check_str.h">
<Filter>src</Filter>
</ClInclude>
<ClInclude Include="..\..\..\..\check\lib\libcompat.h">
<Filter>libcompat</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\check\time.c">
@ -83,5 +86,11 @@
<ClCompile Include="..\..\..\..\check\src\check_str.c">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\check\lib\libcompat.c">
<Filter>libcompat</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\check\lib\clock_gettime.c">
<Filter>libcompat</Filter>
</ClCompile>
</ItemGroup>
</Project>
Loading…
Cancel
Save