Skip to content

Commit

Permalink
- Some fixes for min/max defines and namespaces on older systems
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14630 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 3, 2013
1 parent a115e7e commit 3e7dbe7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
3 changes: 3 additions & 0 deletions SimulationRuntime/c/simulation/simulation_input_xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
#include <iomanip>
#include <map>
#include <list>
#include <string>
#include <string.h>
#include <expat.h>

using namespace std;

typedef std::map<std::string, std::string> omc_ModelDescription;
typedef std::map<std::string, std::string> omc_DefaultExperiment;
typedef std::map<std::string, std::string> omc_ScalarVariable;
Expand Down
3 changes: 3 additions & 0 deletions SimulationRuntime/c/simulation/simulation_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
#include <cstring>
#include <cassert>
#include <signal.h>
#include <fstream>
#include <string>

#ifndef _MSC_VER
#include <regex.h>
#endif
Expand Down
15 changes: 4 additions & 11 deletions SimulationRuntime/c/simulation/simulation_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,15 @@
#include "linearize.h"
#include "simulation_result.h"

#include <fstream>
#include <iostream>
#include <string>

using namespace std;


extern "C" {

extern simulation_result *sim_result;

#ifndef NO_INTERACTIVE_DEPENDENCY
#include "../../../interactive/socket.h"
extern Socket sim_communication_port;
#endif

extern "C" {

extern simulation_result *sim_result;

#endif /* cplusplus */

/* C-Interface for sim_result->emit(); */
Expand Down

0 comments on commit 3e7dbe7

Please sign in to comment.