1 /****************************************************************************/
2 #if( defined _WIN32 && !defined KERNEL_MODE )
4 #ifdef LFDS710_PAL_OPERATING_SYSTEM
5 #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h".
8 #define LFDS710_PAL_OPERATING_SYSTEM
12 #define LFDS710_PAL_OS_STRING "Windows"
13 #define LFDS710_PAL_ASSERT( expression ) if( !(expression) ) LFDS710_MISC_DELIBERATELY_CRASH;
21 /****************************************************************************/
22 #if( defined _WIN32 && defined KERNEL_MODE )
24 #ifdef LFDS710_PAL_OPERATING_SYSTEM
25 #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h".
28 #define LFDS710_PAL_OPERATING_SYSTEM
33 #define LFDS710_PAL_OS_STRING "Windows"
34 #define LFDS710_PAL_ASSERT( expression ) if( !(expression) ) LFDS710_MISC_DELIBERATELY_CRASH;
42 /****************************************************************************/
43 #if( defined __linux__ && !defined KERNEL_MODE )
45 #ifdef LFDS710_PAL_OPERATING_SYSTEM
46 #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h".
49 #define LFDS710_PAL_OPERATING_SYSTEM
51 #define LFDS710_PAL_OS_STRING "Linux"
52 #define LFDS710_PAL_ASSERT( expression ) if( !(expression) ) LFDS710_MISC_DELIBERATELY_CRASH;
60 /****************************************************************************/
61 #if( defined __linux__ && defined KERNEL_MODE )
63 #ifdef LFDS710_PAL_OPERATING_SYSTEM
64 #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h".
67 #define LFDS710_PAL_OPERATING_SYSTEM
69 #include <linux/module.h>
71 #define LFDS710_PAL_OS_STRING "Linux"
72 #define LFDS710_PAL_ASSERT( expression ) BUG_ON( expression )
80 /****************************************************************************/
81 #if( !defined LFDS710_PAL_OPERATING_SYSTEM )
83 #error No matching porting abstraction layer in lfds710_porting_abstraction_layer_operating_system.h