Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. __declspec(dllexport)
  2. __declspec(dllimport)
  3.  
  4. #ifdef SWIG
  5. #define TF_CAPI_EXPORT
  6. #else
  7. #if defined(_WIN32)
  8. #ifdef TF_COMPILE_LIBRARY
  9. #define TF_CAPI_EXPORT __declspec(dllexport)
  10. #else
  11. #define TF_CAPI_EXPORT __declspec(dllimport)
  12. #endif // TF_COMPILE_LIBRARY
  13. #else
  14. #define TF_CAPI_EXPORT __attribute__((visibility("default")))
  15. #endif // _WIN32
  16. #endif // SWIG
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22.  
  23. TF_CAPI_EXPORT extern const char* TF_Version(void); // I get an error here whenever TF_CAPI_EXPORT is used.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement