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:
Danny Smith
2005-02-10 01:19:43 +00:00
parent 9631b700f9
commit 78a04600f9
7 changed files with 28 additions and 10 deletions

View File

@ -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