Skip to content

Commit

Permalink
Fixed to compile under Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Hoops committed Oct 3, 2014
1 parent caacb27 commit 88063f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions copasi/randomGenerator/CRandom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@

#include <time.h>
#ifdef WIN32
# define _USE_MATH_DEFINES
# include <Windows.h>
#else
# include <unistd.h>
# include <sys/syscall.h>
#endif // WIN32

#include <cmath>
#include <algorithm>
#include <string.h>
Expand Down
12 changes: 5 additions & 7 deletions copasi/steadystate/CEigen.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
// Copyright (C) 2010 - 2014 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
Expand Down Expand Up @@ -26,14 +26,12 @@
# include <ieeefp.h>
#endif

#ifdef WIN32
# define _USE_MATH_DEFINES
#endif

#include <cmath>
#include <complex>
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif // not M_PI
#ifndef M_E
#define M_E 2.7182818284590452354 /* e */
#endif // not M_E

#include "copasi.h"

Expand Down

0 comments on commit 88063f1

Please sign in to comment.