Author: fireball
Date: Fri Dec 14 19:00:53 2007
New Revision: 31217
URL:
http://svn.reactos.org/svn/reactos?rev=31217&view=rev
Log:
- Add compile-time assert, since ReactOS opengl32 depends on the hardcoded value.
Modified:
trunk/reactos/dll/win32/opengl32/gl.c
Modified: trunk/reactos/dll/win32/opengl32/gl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/gl.c?re…
==============================================================================
--- trunk/reactos/dll/win32/opengl32/gl.c (original)
+++ trunk/reactos/dll/win32/opengl32/gl.c Fri Dec 14 19:00:53 2007
@@ -24,6 +24,9 @@
#define WIN32_NO_STATUS
#include <windows.h>
#include "teb.h"
+
+#define C_ASSERT(e) extern char __C_ASSERT__[(e)?1:-1]
+C_ASSERT(FIELD_OFFSET(TEB, glTable) == 0xbe8);
#include "opengl32.h"