SHARE
TWEET

Untitled

a guest Jun 26th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top