summaryrefslogtreecommitdiff
path: root/src/mapi/mapi/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/mapi/entry.c')
-rw-r--r--src/mapi/mapi/entry.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mapi/mapi/entry.c b/src/mapi/mapi/entry.c
index b38df07391..968aa44528 100644
--- a/src/mapi/mapi/entry.c
+++ b/src/mapi/mapi/entry.c
@@ -26,9 +26,18 @@
* Chia-I Wu <olv@lunarg.com>
*/
+#include "entry.h"
+
+#if defined(USE_X86_ASM) && defined(__GNUC__)
+# ifdef GLX_USE_TLS
+# include "entry_x86_tls.h"
+# else
+# include "entry_x86_tsd.h"
+# endif
+#else
+
#include <stdlib.h>
#include "u_current.h"
-#include "entry.h"
#include "table.h"
/* C version of the public entries */
@@ -50,3 +59,5 @@ void
entry_patch(mapi_func entry, int slot)
{
}
+
+#endif /* asm */