/****************************************************************************/ #if( defined _WIN32 && !defined KERNEL_MODE ) #ifdef LFDS710_PAL_OPERATING_SYSTEM #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h". #endif #define LFDS710_PAL_OPERATING_SYSTEM #include #define LFDS710_PAL_OS_STRING "Windows" #define LFDS710_PAL_ASSERT( expression ) if( !(expression) ) LFDS710_MISC_DELIBERATELY_CRASH; #endif /****************************************************************************/ #if( defined _WIN32 && defined KERNEL_MODE ) #ifdef LFDS710_PAL_OPERATING_SYSTEM #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h". #endif #define LFDS710_PAL_OPERATING_SYSTEM #include #include #define LFDS710_PAL_OS_STRING "Windows" #define LFDS710_PAL_ASSERT( expression ) if( !(expression) ) LFDS710_MISC_DELIBERATELY_CRASH; #endif /****************************************************************************/ #if( defined __linux__ && !defined KERNEL_MODE ) #ifdef LFDS710_PAL_OPERATING_SYSTEM #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h". #endif #define LFDS710_PAL_OPERATING_SYSTEM #define LFDS710_PAL_OS_STRING "Linux" #define LFDS710_PAL_ASSERT( expression ) if( !(expression) ) LFDS710_MISC_DELIBERATELY_CRASH; #endif /****************************************************************************/ #if( defined __linux__ && defined KERNEL_MODE ) #ifdef LFDS710_PAL_OPERATING_SYSTEM #error More than one porting abstraction layer matches the current platform in "lfds710_porting_abstraction_layer_operating_system.h". #endif #define LFDS710_PAL_OPERATING_SYSTEM #include #define LFDS710_PAL_OS_STRING "Linux" #define LFDS710_PAL_ASSERT( expression ) BUG_ON( expression ) #endif /****************************************************************************/ #if( !defined LFDS710_PAL_OPERATING_SYSTEM ) #error No matching porting abstraction layer in lfds710_porting_abstraction_layer_operating_system.h #endif