Skip to content

Commit

Permalink
- fixes the last commit to compile on windows
Browse files Browse the repository at this point in the history
- include windows.h in systemimpl.h
- moved dynload.o before libc_runtime.a in Makefile.common.omdev.mingw
  as otherwise you get undefined symbols

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4474 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Nov 9, 2009
1 parent 25ef9e8 commit 20c43af
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Compiler/runtime/systemimpl.h
@@ -1,9 +1,9 @@
/*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-2008, Linköpings University,
* Copyright (c) 1998-2008, Linköpings University,
* Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
Expand All @@ -29,15 +29,16 @@
*/

#include "modelica.h"
typedef int (*function_t)(void*, void*);
typedef struct modelica_ptr_s *modelica_ptr_t;

char* _replace(const char* source_str,
const char* search_str,
const char* replace_str);
modelica_ptr_t lookup_ptr(modelica_integer index);

typedef int (*function_t)(type_description*, type_description*);

#if defined(__MINGW32__) || defined(_MSC_VER)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
struct modelica_ptr_s {
union {
struct {
Expand All @@ -61,3 +62,7 @@ struct modelica_ptr_s {
};
#endif

typedef struct modelica_ptr_s *modelica_ptr_t;
modelica_ptr_t lookup_ptr(modelica_integer index);


0 comments on commit 20c43af

Please sign in to comment.