2005-02-10 Jiri Malak <Jiri.Malak@iol.cz>
Danny Smith <dannysmith@users.sourceforge.net> * lib/directx/dinput_private.h (ATTRIBUTE_TEXT_SECTION): New define for Open Watcom portability. * lib/directx/(dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c, dinput_mouse2.c): Use new macro in definition of local c_rgodfDI* objects. Replace .rdata section attribute with 'const' keyword in definition of global c_dfDI* objects.
This commit is contained in:
@ -70,4 +70,12 @@ extern GUID GUID_Slider;
|
||||
extern GUID GUID_Key;
|
||||
extern GUID GUID_POV;
|
||||
|
||||
#if defined (__WATCOMC__)
|
||||
#define ATTRIBUTE_TEXT_SECTION __based( __segname( "_CODE" ) )
|
||||
#elif defined (__GNUC__)
|
||||
#define ATTRIBUTE_TEXT_SECTION __attribute__ ((section(".text")))
|
||||
#else
|
||||
#define ATTRIBUTE_TEXT_SECTION
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user