From 9b8e8ff5ded12e48628f7c5ec7defd4a0fb551a1 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Sun, 9 Sep 2012 08:02:59 -0700 Subject: [PATCH] Wrapping "#include " with #ifdef for linux compatibility --- field.cpp | 6 +++++- main.cpp | 6 +++++- network.cpp | 1 + util.cpp | 6 +++++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/field.cpp b/field.cpp index 4b0d2dc86d..1232c50b76 100644 --- a/field.cpp +++ b/field.cpp @@ -6,10 +6,14 @@ // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // +#ifdef __APPLE__ +#include +#else +#include +#endif #include #include "field.h" #include "world.h" -#include // A vector-valued field over an array of elements arranged as a 3D lattice diff --git a/main.cpp b/main.cpp index e99002231c..6db95940cd 100644 --- a/main.cpp +++ b/main.cpp @@ -14,13 +14,17 @@ // s = clear cells to zero but preserve synapse weights // -#include +#ifdef __APPLE__ #include +#else +#include +#endif #include #include #include #include #include +#include #include // These includes are for the serial port reading/writing diff --git a/network.cpp b/network.cpp index 4ed037a15e..f89a750885 100644 --- a/network.cpp +++ b/network.cpp @@ -7,6 +7,7 @@ // #include +#include #include "network.h" diff --git a/util.cpp b/util.cpp index 3f57ec928b..7a08321715 100644 --- a/util.cpp +++ b/util.cpp @@ -6,8 +6,12 @@ // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // -#include +#ifdef __APPLE__ #include +#else +#include +#endif +#include #include "world.h" void render_world_box()