summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/wgl/stw_winsys.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-06 16:45:12 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-01-06 18:23:17 +0000
commit5da0401398239a2b445e11945144d073d77f0f03 (patch)
treef27d6b2e9b60f4548a51b2e35c04e7a607601560 /src/mesa/state_tracker/wgl/stw_winsys.h
parenta40ad7ded44e8331ccd9a6d477a2f1716baf6d16 (diff)
wgl: Do not provide DllMain inside the state tracker.
MS CRT libraries already provide a default DllMain entrypoint, and MS Linker will complain if it finds the same symbol in two different libraries. Therefore the DllMain has to be in (each) winsys.
Diffstat (limited to 'src/mesa/state_tracker/wgl/stw_winsys.h')
-rw-r--r--src/mesa/state_tracker/wgl/stw_winsys.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/wgl/stw_winsys.h b/src/mesa/state_tracker/wgl/stw_winsys.h
index e61f65f70e..8557327ccd 100644
--- a/src/mesa/state_tracker/wgl/stw_winsys.h
+++ b/src/mesa/state_tracker/wgl/stw_winsys.h
@@ -30,6 +30,8 @@
#include <windows.h> /* for HDC */
+#include "pipe/p_compiler.h"
+
struct pipe_screen;
struct pipe_context;
struct pipe_winsys;
@@ -49,6 +51,10 @@ struct stw_winsys
HDC hDC );
};
-extern const struct stw_winsys stw_winsys;
+boolean
+st_init(const struct stw_winsys *stw_winsys);
+
+void
+st_cleanup(void);
#endif /* STW_WINSYS_H */