Skip to content
Snippets Groups Projects
Commit 5c54c8e5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix htonl on win32

parent a0d7105d
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,6 @@
* *
*===========================================================================*/
#define htonl(x) (x) // gmsh
/*
* Copyright (c) 1995 The Regents of the University of California.
* All rights reserved.
......@@ -89,7 +87,6 @@
#include "bitio.h"
#include "mtypes.h"
/*===============================*
* INTERNAL PROCEDURE prototypes *
*===============================*/
......
......@@ -72,5 +72,13 @@
#else
/* let in.h handle it, if possible */
#include <sys/types.h>
// gmsh: for windows
#if !defined(WIN32) || defined(__CYGWIN__)
#include <netinet/in.h>
#else
#include <winsock.h>
#endif
#endif /* FORCE_LITTLE_ENDIAN */
#endif /* FORCE_BIG_ENDIAN */
......@@ -115,7 +115,10 @@ int pclose();
* TYPE DEFINITIONS *
*==================*/
typedef int boolean;
// gmsh: cannot use a typedef because windows does, too -> use a #define
//typedef int boolean;
#define boolean int
/* this is for JPEG stuff */
#define BOOLEAN_DEFINED
#define HAVE_BOOLEAN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment