with FPC maybe ( public name ) helps
with FPC maybe ( public name ) helps
Last edited by AirPas; 27-08-2013 at 01:34 PM.
I not use FPC, I use DelphiXE4 and I like compile SDL2 to WIN32, WIN64, OSX and IOS (and Android when DelphiXE5 relased)
This is article by embarcadero:
http://docwiki.embarcadero.com/RADSt...ared_Libraries
I like call always to function SDL_Init in my games/engine and if destination is OSX autimatically rename it to _SDL_Init.
I can make this:
But I don't like, because in games/engine I need call to SDL_Init or _SDL_Init and I like call allways to SDL_Init regardless of platformCode:interface {$IFDEF MACOS}function _SDL_Init(flags: UInt32): SInt32 cdecl; external {$IFDEF GPC} name 'SDL_Init' {$ELSE} SDL_LibName {$ENDIF}; {$ELSE} function SDL_Init(flags: UInt32): SInt32 cdecl; external {$IFDEF GPC} name 'SDL_Init' {$ELSE} SDL_LibName {$ENDIF}; {$ENDIF}
Last edited by kotai; 27-08-2013 at 01:57 PM.
www.kotai.es
www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
www.miniracingonline.com
This is article by embarcadero:
http://docwiki.embarcadero.com/RADSt...ared_Libraries
I like call always to function SDL_Init in my games/engine and if destination is OSX autimatically rename it to _SDL_Init.
I can make this:
But I don't like, because in games/engine I need call to SDL_Init or _SDL_Init and I like call allways to SDL_Init regardless of platformCode:interface {$IFDEF MACOS} function _SDL_Init(flags: UInt32): SInt32 cdecl; external; {$ELSE} function SDL_Init(flags: UInt32): SInt32 cdecl; external; {$ENDIF}
www.kotai.es
www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
www.miniracingonline.com
I found a solution:
I will delete all {$IFDEF GPC} name 'XXX' {$ELSE} SDL_LibName {$ENDIF};Code:function SDL_Init(flags: UInt32): SInt32 cdecl; external SDL_LibName {$IFDEF MACOS} name '_SDL_Init' {$ENDIF};
and I will use {$IFDEF MACOS} name '_XXX' {$ENDIF};
I not need compile with GNU Pascal Compliler, I need compile only with DelphiXE4
Kotai
Last edited by kotai; 27-08-2013 at 02:51 PM.
www.kotai.es
www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
www.miniracingonline.com
Bookmarks