1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef shared_h #define shared_h #ifdef WIN32 #ifdef shared_EXPORTS #define SHARED_EXPORT __declspec(dllexport) #else #define SHARED_EXPORT __declspec(dllimport) #endif #else #define SHARED_EXPORT #endif void SHARED_EXPORT shared(); #endif