summaryrefslogtreecommitdiff
path: root/src/cl_driver.cpp
diff options
context:
space:
mode:
authorBenjamin Segovia <segovia.benjamin@gmail.com>2012-04-06 17:05:29 -0700
committerKeith Packard <keithp@keithp.com>2012-08-10 16:16:07 -0700
commita2d1b07c362a631ca1859f6a658bce54d0fc6a34 (patch)
treebf4f0b2f8be57b7865b76b2f4cc1810698d16d0a /src/cl_driver.cpp
parent88788630d73cdafb706c504c163d594506ee3021 (diff)
Fix name of callback initializer
Diffstat (limited to 'src/cl_driver.cpp')
-rw-r--r--src/cl_driver.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/cl_driver.cpp b/src/cl_driver.cpp
index df265180..dd446375 100644
--- a/src/cl_driver.cpp
+++ b/src/cl_driver.cpp
@@ -24,19 +24,21 @@ extern "C" {
#include <stdlib.h>
#include <string.h>
}
-
-/* Just use c++ pre-main to initialize the call-backs */
-struct CallBackInitializer
+namespace
{
- CallBackInitializer(void) {
- const char *run_it = getenv("OCL_SIMULATOR");
- if (run_it != NULL && !strcmp(run_it, "2"))
- sim_setup_callbacks();
- else
- intel_setup_callbacks();
- }
-};
+ /* Just use c++ pre-main to initialize the call-backs */
+ struct CallBackInitializer
+ {
+ CallBackInitializer(void) {
+ const char *run_it = getenv("OCL_SIMULATOR");
+ if (run_it != NULL && !strcmp(run_it, "2"))
+ sim_setup_callbacks();
+ else
+ intel_setup_callbacks();
+ }
+ };
-/* Set the call backs at pre-main time */
-LOCAL CallBackInitializer cbInitializer;
+ /* Set the call backs at pre-main time */
+ LOCAL CallBackInitializer cbInitializer;
+}