fixing coding style on OpenMP wrapper

This commit is contained in:
Dennis Luxen 2013-06-28 10:14:31 -04:00
parent fff1460dfb
commit 99aef2a178

View File

@ -19,16 +19,17 @@ or see http://www.gnu.org/licenses/agpl.txt.
*/ */
#ifndef _OPENMPREPLACEMENTY_H #ifndef _OPENMWRAPPER_H
#define _OPENMPREPLACEMENTY_H #define _OPENMWRAPPER_H
#ifdef _OPENMP #ifdef _OPENMP
#include <omp.h> // extern "C" {
#include <omp.h>
// }
#else #else
inline const int omp_get_num_procs() { return 1; } inline int omp_get_num_procs () { return 1; }
inline const int omp_get_max_threads() { return 1; } inline int omp_get_max_threads () { return 1; }
inline const int omp_get_thread_num() { return 0; } inline int omp_get_thread_num () { return 0; }
inline const void omp_set_num_threads(int i) {} inline void omp_set_num_threads (int i) {}
#endif #endif /* _OPENMP */
#endif /* _OPENMWRAPPER_H */
#endif