summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_main.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_main.h')
-rw-r--r--ACE/ace/OS_main.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ACE/ace/OS_main.h b/ACE/ace/OS_main.h
index 536045072be..199c1f8f7ee 100644
--- a/ACE/ace/OS_main.h
+++ b/ACE/ace/OS_main.h
@@ -164,6 +164,16 @@ public:
ACE_END_VERSIONED_NAMESPACE_DECL
+/*
+** LabVIEW RT cannot directly use an executable. Need to build the program
+** as a DLL and call it from something else. The ACE test framework knows this
+** trick and uses a LabVIEW RT target-resident control program to load a
+** DLL, look up it's main() entrypoint, and call it.
+*/
+# if defined (ACE_BUILD_LABVIEW_EXE_AS_DLL)
+extern "C" __declspec (dllexport) int main (int, char *[]);
+# endif /* ACE_BUILD_LABVIEW_EXE_AS_DLL) */
+
# define main \
ace_main_i (int, char *[]); \
ACE_BEGIN_VERSIONED_NAMESPACE_DECL \