Skip to content

Instantly share code, notes, and snippets.

@jaybill
Created January 25, 2021 18:15
Show Gist options
  • Save jaybill/26375ced70e2b1f088e30ab1fdcdb61b to your computer and use it in GitHub Desktop.
Save jaybill/26375ced70e2b1f088e30ab1fdcdb61b to your computer and use it in GitHub Desktop.
Header for c2nim to add pragmas for dll
#ifdef C2NIM
# dynlib solouddll
# cdecl
# if defined(windows)
# define solouddll "soloud.dll"
# elif defined(macosx)
# define solouddll "libsoloud.dylib"
# else
# define solouddll "libsoloud.so"
# endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment