Skip to content

Commit

Permalink
- Fix bootstrapping OMC on OMDEV (can't link to non-portable UUID lib…
Browse files Browse the repository at this point in the history
…s; should be rewritten in some portable C way)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7163 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 24, 2010
1 parent c8bb2af commit d39eb19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Compiler/runtime/System_rml.c
Expand Up @@ -35,6 +35,7 @@
*/

#if defined(__MINGW32__) || defined(_MSC_VER)
#define USE_WIN32_UUID
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <shlwapi.h>
Expand Down
2 changes: 1 addition & 1 deletion Compiler/runtime/systemimpl.c
Expand Up @@ -576,7 +576,7 @@ int setenv(const char* envname, const char* envvalue, int overwrite)
static const char* SystemImpl__getUUIDStr()
{
static char uuidStr[37] = "8c4e810f-3df3-4a00-8276-176fa3c9f9e0";
#if defined(__MINGW32__) || defined(_MSC_VER)
#if defined(USE_WIN32_UUID)
unsigned char *tmp;
UUID uuid;
if (UuidCreate(&uuid) == RPC_S_OK)
Expand Down

0 comments on commit d39eb19

Please sign in to comment.