1 // This header is included in all the test programs (C and C++) and provides a
2 // hook for dealing with platform-specifics.
3 #if defined(_WIN32) || defined(_WIN64)
4 #ifdef COMPILING_LLDB_TEST_DLL
5 #define LLDB_TEST_API __declspec(dllexport)
6 #else
7 #define LLDB_TEST_API __declspec(dllimport)
8 #endif
9 #else
10 #define LLDB_TEST_API
11 #endif
12 
13 #if defined(__cplusplus) && defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0)
14 // Compiling MSVC libraries with _HAS_EXCEPTIONS=0, eliminates most but not all
15 // calls to __uncaught_exception.  Unfortunately, it does seem to eliminate
16 // the delcaration of __uncaught_excpeiton.  Including <eh.h> ensures that it is
17 // declared.  This may not be necessary after MSVC 12.
18 #include <eh.h>
19 #endif
20