浏览代码

ogsf: Replace wingdi.h with windows.h

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72980 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 6 年之前
父节点
当前提交
74afadaa3b
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/ogsf/gsd_prim.c

+ 4 - 1
lib/ogsf/gsd_prim.c

@@ -32,7 +32,9 @@
 #elif defined(OPENGL_WINDOWS)
 #elif defined(OPENGL_WINDOWS)
 #include <GL/gl.h>
 #include <GL/gl.h>
 #include <GL/glu.h>
 #include <GL/glu.h>
-#include <wingdi.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
 #endif
 #endif
 
 
 #include <grass/gis.h>
 #include <grass/gis.h>
@@ -460,6 +462,7 @@ void gsd_frontbuffer(void)
 
 
 /*!
 /*!
    \brief Draw to the back buffer
    \brief Draw to the back buffer
+   \param bool non-zero for enable otherwise disable back buffer
  */
  */
 void gsd_backbuffer(void)
 void gsd_backbuffer(void)
 {
 {