1 /****************************************************************************/
2 #if( defined _WIN32 && NTDDI_VERSION >= NTDDI_WINXP && !defined KERNEL_MODE )
4 #ifdef LIBTEST_PAL_OPERATING_SYSTEM
5 #error More than one porting abstraction layer matches current platform in "libtest_porting_abstraction_layer_operating_system.h".
8 #define LIBTEST_PAL_OPERATING_SYSTEM
14 #define LIBTEST_PAL_OS_STRING "Windows"
22 /****************************************************************************/
23 #if( defined _WIN32 && NTDDI_VERSION >= NTDDI_WINXP && defined KERNEL_MODE )
25 #ifdef LIBTEST_PAL_OPERATING_SYSTEM
26 #error More than one porting abstraction layer matches current platform in "libtest_porting_abstraction_layer_operating_system.h".
29 #define LIBTEST_PAL_OPERATING_SYSTEM
35 #define LIBTEST_PAL_OS_STRING "Windows"
43 /****************************************************************************/
44 #if( defined __linux__ && !defined KERNEL_MODE )
46 #ifdef LIBTEST_PAL_OPERATING_SYSTEM
47 #error More than one porting abstraction layer matches current platform in "libtest_porting_abstraction_layer_operating_system.h".
50 #define LIBTEST_PAL_OPERATING_SYSTEM
59 #define LIBTEST_PAL_OS_STRING "Linux"
67 /****************************************************************************/
68 #if( defined __linux__ && defined KERNEL_MODE )
70 #ifdef LIBTEST_PAL_OPERATING_SYSTEM
71 #error More than one porting abstraction layer matches current platform in "libtest_porting_abstraction_layer_operating_system.h".
74 #define LIBTEST_PAL_OPERATING_SYSTEM
76 #error libtest not quite yet ready for Linux kernel - it uses time() all over the place
78 #define LIBTEST_PAL_OS_STRING "Linux"
86 /****************************************************************************/
87 #if( !defined LIBTEST_PAL_OPERATING_SYSTEM )
89 #error No matching porting abstraction layer in "libtest_porting_abstraction_layer_operating_system.h".