Skip to content

Commit

Permalink
- empty defines for some openmp functions if we don't have _OPENMP
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17142 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Sep 8, 2013
1 parent 8d89e1c commit 8275ecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/Template/CodegenC.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ template simulationFile(SimCode simCode, String guid)
#ifndef HPCOM
#include <perform_simulation.c>
#define omp_get_max_threads() 1
#define omp_set_dynamic(X) /* NO omp_set_dynamic */
#define omp_init_lock(X) /* NO omp_init_lock */
#define omp_set_lock(X) /* NO omp_set_lock */
#define omp_unset_lock(X) /* NO omp_unset_lock */
#else
#include <perform_simulation.c>
#endif
Expand Down

0 comments on commit 8275ecd

Please sign in to comment.