TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

How does Sparky support Windows' DLL exports in the context of Unix systems? #141

Open twaritwaikar opened 5 years ago

twaritwaikar commented 5 years ago

I am aware of the how and why function definitions are exported to DLLs in Windows using __declspec(). However, I don't seem to know how it is done on non-Windows platforms.

Since Sparky is cross-platform, I went ahead and saw how SP_API macro is defined in Common.h but I don't see any definitions for non-Windows systems.