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 - SDL_main export
Summary: SDL_main export
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: 2.0.6
Hardware: x86 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-28 11:47 UTC by eugeneopalev
Modified: 2017-11-02 00:41 UTC (History)
1 user (show)

See Also:


Attachments
Dependency Walker SDL_main export (42.95 KB, image/png)
2017-10-28 11:47 UTC, eugeneopalev
Details

Note You need to log in before you can comment on or make changes to this bug.
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