]> gerrit.simantics Code Review - simantics/python.git/blobdiff - org.simantics.pythonlink.win32.x86_64/src/sclpy.h
Added C source code for the DLL and a CDT project aspect for compiling it.
[simantics/python.git] / org.simantics.pythonlink.win32.x86_64 / src / sclpy.h
diff --git a/org.simantics.pythonlink.win32.x86_64/src/sclpy.h b/org.simantics.pythonlink.win32.x86_64/src/sclpy.h
new file mode 100644 (file)
index 0000000..ec3b400
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef __MAIN_H__\r
+#define __MAIN_H__\r
+\r
+/*  To use this exported function of dll, include this header\r
+ *  in your project.\r
+ */\r
+\r
+#ifdef BUILD_DLL\r
+    #define DLL_EXPORT __declspec(dllexport)\r
+#else\r
+    #define DLL_EXPORT __declspec(dllimport)\r
+#endif\r
+\r
+#endif // __MAIN_H__\r