From 99aef2a178cd2d38679b653ed99b4c00bb3cda66 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 28 Jun 2013 10:14:31 -0400 Subject: [PATCH] fixing coding style on OpenMP wrapper --- Util/OpenMPWrapper.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Util/OpenMPWrapper.h b/Util/OpenMPWrapper.h index 520ac252c..c5426b06c 100644 --- a/Util/OpenMPWrapper.h +++ b/Util/OpenMPWrapper.h @@ -19,16 +19,17 @@ or see http://www.gnu.org/licenses/agpl.txt. */ -#ifndef _OPENMPREPLACEMENTY_H -#define _OPENMPREPLACEMENTY_H +#ifndef _OPENMWRAPPER_H +#define _OPENMWRAPPER_H #ifdef _OPENMP - #include + // extern "C" { + #include + // } #else - inline const int omp_get_num_procs() { return 1; } - inline const int omp_get_max_threads() { return 1; } - inline const int omp_get_thread_num() { return 0; } - inline const void omp_set_num_threads(int i) {} -#endif - -#endif + inline int omp_get_num_procs () { return 1; } + inline int omp_get_max_threads () { return 1; } + inline int omp_get_thread_num () { return 0; } + inline void omp_set_num_threads (int i) {} +#endif /* _OPENMP */ +#endif /* _OPENMWRAPPER_H */