Browse Source

attempt to define u_int etc for MinGW

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53301 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 12 years ago
parent
commit
2b8334cf8e
2 changed files with 12 additions and 0 deletions
  1. 6 0
      lib/raster3d/doubleio.c
  2. 6 0
      lib/raster3d/intio.c

+ 6 - 0
lib/raster3d/doubleio.c

@@ -4,6 +4,12 @@
 #include <unistd.h>
 #include "raster3d_intern.h"
 
+#ifndef _GNU_H_WINDOWS32_SOCKETS
+typedef unsigned int u_int;
+typedef unsigned long u_long;
+typedef unsigned short u_short;
+#endif
+
 /*---------------------------------------------------------------------------*/
 
 int Rast3d_write_doubles(int fd, int useXdr, const double *i, int nofNum)

+ 6 - 0
lib/raster3d/intio.c

@@ -4,6 +4,12 @@
 #include <unistd.h>
 #include "raster3d_intern.h"
 
+#ifndef _GNU_H_WINDOWS32_SOCKETS
+typedef unsigned int u_int;
+typedef unsigned long u_long;
+typedef unsigned short u_short;
+#endif
+
 /*---------------------------------------------------------------------------*/
 
 int Rast3d_write_ints(int fd, int useXdr, const int *i, int nofNum)