We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3926

Summary: SDL_main export
Product: SDL Reporter: eugeneopalev
Component: mainAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 2.0.6   
Hardware: x86   
OS: Windows 7   
Attachments: Dependency Walker SDL_main export

Description eugeneopalev 2017-10-28 11:47:05 UTC
Created attachment 3047 [details]
Dependency Walker SDL_main export

I noticed that after updating SDL to 2.0.6 my application now exports SDL_main.

At GitHub SDL mirror (branch 2.0.5) SDL_main prototyped as
extern C_LINKAGE int SDL_main(int argc, char *argv[]);
but at branch 2.0.6 prototype is
extern C_LINKAGE DECLSPEC int SDL_main(int argc, char *argv[]);
Comment 1 Ozkan Sezer 2017-10-28 11:55:05 UTC
DECLSPEC added by http://hg.libsdl.org/SDL/rev/a8c29f5b679f on Aug. 28, 2017:
"Removed the need for libSDL2main.a on Android, and separated JNI initialization out for other integrations"
Comment 2 Sam Lantinga 2017-11-02 00:41:40 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/b2d2705511d1