projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
927f7b5
)
- Add compile-time assert, since ReactOS opengl32 depends on the hardcoded value.
author
Aleksey Bragin
<aleksey@reactos.org>
Fri, 14 Dec 2007 16:00:53 +0000
(16:00 +0000)
committer
Aleksey Bragin
<aleksey@reactos.org>
Fri, 14 Dec 2007 16:00:53 +0000
(16:00 +0000)
svn path=/trunk/; revision=31217
reactos/dll/win32/opengl32/gl.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/opengl32/gl.c
b/reactos/dll/win32/opengl32/gl.c
index
249ed52
..
787750e
100644
(file)
--- a/
reactos/dll/win32/opengl32/gl.c
+++ b/
reactos/dll/win32/opengl32/gl.c
@@
-25,6
+25,9
@@
#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"
int STDCALL glEmptyFunc0() { return 0; }