Skip to content

Commit

Permalink
- Fix compilation.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18001 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Nov 4, 2013
1 parent 75f0bfb commit 93de7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/runtime/System_omc.c
Expand Up @@ -740,10 +740,10 @@ static int System_forkCallJoin(int *statuses, int *ids, int len, int *working)
extern void* System_forkCall(int numThreads, void *dataLst, void (*fn)(threadData_t*,void*))
{
#if defined(__MINGW32__) || defined(_MSC_VER)
c_add_message(-1,ErrorType_scripting,ErrorLevel_error,gettext("Fork is not available on Windows"),NULL,0);
c_add_message(NULL,-1,ErrorType_scripting,ErrorLevel_error,gettext("Fork is not available on Windows"),NULL,0);
MMC_THROW();
#elif defined(__APPLE_CC__)
c_add_message(-1,ErrorType_scripting,ErrorLevel_error,gettext("Fork is not safe to use on OSX"),NULL,0);
c_add_message(NULL,-1,ErrorType_scripting,ErrorLevel_error,gettext("Fork is not safe to use on OSX"),NULL,0);
MMC_THROW();
#else
threadData_t *threadData = (threadData_t *) pthread_getspecific(mmc_thread_data_key);
Expand Down

0 comments on commit 93de7f7

Please sign in to comment.