Skip to content

Commit

Permalink
try to fix windows build problem, include windows.h earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 2, 2024
1 parent 41b9feb commit 9463a31
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions VCell/src/DomainPDEScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* All rights reserved.
*/
#ifdef WIN32
#define _HAS_STD_BYTE 0
#include <Windows.h>
#else
#include <UnixDefs.h>
Expand Down
1 change: 1 addition & 0 deletions VCell/src/EllipticVolumeEqnBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* All rights reserved.
*/
#ifdef WIN32
#define _HAS_STD_BYTE 0
#include <Windows.h>
#endif

Expand Down
5 changes: 5 additions & 0 deletions VCell/src/FiniteVolume.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#if (defined(WIN32) || defined(WIN64) )
#define _HAS_STD_BYTE 0
#include <windows.h>
#endif

#include <iostream>
#include <fstream>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions VCell/src/TIFFImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* All rights reserved.
*/
#ifdef WIN32
#define _HAS_STD_BYTE 0
#include <Windows.h>
#else
#include <UnixDefs.h>
Expand Down
19 changes: 11 additions & 8 deletions VCellMessaging/include/VCELL/SimulationMessaging.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
#ifndef _SIMULATIONMESSAGING_H_
#define _SIMULATIONMESSAGING_H_

#if (defined(WIN32) || defined(WIN64) )
#define _HAS_STD_BYTE 0
#include <windows.h>
#else
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <memory.h>
#endif


#include <deque>
#ifdef USE_MESSAGING
#include <stdlib.h>
Expand All @@ -11,14 +22,6 @@
#include <iostream>
using namespace std;

#if (defined(WIN32) || defined(WIN64) )
#include <windows.h>
#else
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <memory.h>
#endif

#ifdef USE_MESSAGING
#if (!defined(WIN32) && !defined(WIN64) )
Expand Down
1 change: 1 addition & 0 deletions libzip-1.2.0/lib/zipwin32.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

/* 0x0501 => Windows XP; needs to be at least this value because of GetFileSizeEx */
#define _WIN32_WINNT 0x0501
#define _HAS_STD_BYTE 0
#include <windows.h>

/* context for Win32 source */
Expand Down
1 change: 1 addition & 0 deletions smoldyn-2.38/source/lib/opengl2.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ of the Gnu Lesser General Public License (LGPL). */

#if defined(HAVE_OPENGL) // Do NOT change the sequence of these if..elses without contacting Steve
#ifdef WIN32
#define _HAS_STD_BYTE 0
#include <windows.h>
#endif

Expand Down

0 comments on commit 9463a31

Please sign in to comment.