Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wanted: ability to not include main() in libSDLiPhone.a #302

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Wanted: ability to not include main() in libSDLiPhone.a #302

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: iOS (All), iPhone/iPod touch

Comments on the original bug report:

On 2010-08-17 06:41:05 +0000, Jack Jansen wrote:

We're using SDL only for audio on the iPhone, and the main() program in SDL_uikitappdelegate.m is conflicting with our own main program. But: some other routines from that file are needed, obviously.

I tried disabling the main program by adding GCC_PREPROCESSOR_DEFINES=main=mainUNUSED to the xcodebuild command line for building libSDLiPhone.a, but unfortunately that doesn't work because the file starts with
#ifdef main
#undef main
#endif

Could I request that you add something like #ifndef WITHOUT_SDL_MAIN_PROGRAM or something like that around the main() program, or some other means whereby we can exclude the main program while keeping all the other goodies?

Thanks,
Jack

On 2011-04-27 18:15:53 +0000, Vittorio Giovara wrote:

hey, does this http://hg.libsdl.org/SDL/rev/8a04b596b472 help you?

On 2013-05-21 01:22:06 +0000, Sam Lantinga wrote:

It looks like you can disable the video driver (and main()) by turning off SDL_VIDEO_DRIVER_UIKIT in SDL_config_iphoneos.h

I haven't tried it, so please let me know if there are any problems with this.

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant