1 #ifdef A_DEF 2 # error "A_DEF must not be defined" 3 #endif 4 #ifndef B_DEF 5 # error "B_DEF not defined" 6 #endif 7 8 #if defined(_WIN32) && defined(Bexport) 9 # define EXPORT_B __declspec(dllexport) 10 #else 11 # define EXPORT_B 12 #endif 13 14 #if defined(_WIN32) && defined(SHARED_B) 15 # define IMPORT_B __declspec(dllimport) 16 #else 17 # define IMPORT_B 18 #endif 19