fb7348f644
The Watcom compiler interprets "-DB" as option -db generate browsing information so define "A_DEF" and "B_DEF" instead of just "A" and "B". Skip CMAKE_SHARED_LIBRARY_C_FLAGS for Watcom because it is set to -bd build Dynamic link library which adds a DLL entry point to each object.
12 lines
216 B
C
12 lines
216 B
C
#ifdef A_DEF
|
|
# error "A_DEF must not be defined"
|
|
#endif
|
|
#ifndef B_DEF
|
|
# error "B_DEF not defined"
|
|
#endif
|
|
#if defined(_WIN32) && defined(Bexport)
|
|
# define EXPORT_B __declspec(dllexport)
|
|
#else
|
|
# define EXPORT_B
|
|
#endif
|