[GRASS-SVN] r72980 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 12 07:39:14 PDT 2018


Author: hcho
Date: 2018-07-12 07:39:14 -0700 (Thu, 12 Jul 2018)
New Revision: 72980

Modified:
   grass/trunk/lib/ogsf/gsd_prim.c
Log:
ogsf: Replace wingdi.h with windows.h

Modified: grass/trunk/lib/ogsf/gsd_prim.c
===================================================================
--- grass/trunk/lib/ogsf/gsd_prim.c	2018-07-12 12:39:37 UTC (rev 72979)
+++ grass/trunk/lib/ogsf/gsd_prim.c	2018-07-12 14:39:14 UTC (rev 72980)
@@ -32,7 +32,9 @@
 #elif defined(OPENGL_WINDOWS)
 #include <GL/gl.h>
 #include <GL/glu.h>
-#include <wingdi.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
 #endif
 
 #include <grass/gis.h>
@@ -460,6 +462,7 @@
 
 /*!
    \brief Draw to the back buffer
+   \param bool non-zero for enable otherwise disable back buffer
  */
 void gsd_backbuffer(void)
 {



More information about the grass-commit mailing list