summaryrefslogtreecommitdiff
path: root/DevIL/src-IL/src/il_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevIL/src-IL/src/il_main.cpp')
-rw-r--r--DevIL/src-IL/src/il_main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/DevIL/src-IL/src/il_main.cpp b/DevIL/src-IL/src/il_main.cpp
new file mode 100644
index 00000000..ffde2052
--- /dev/null
+++ b/DevIL/src-IL/src/il_main.cpp
@@ -0,0 +1,30 @@
+//-----------------------------------------------------------------------------
+//
+// ImageLib Sources
+// Copyright (C) 2000-2002 by Denton Woods
+// Last modified: 02/16/2002 <--Y2K Compliant! =]
+//
+// Filename: src-IL/src/il_main.c
+//
+// Description: Startup function
+//
+//-----------------------------------------------------------------------------
+
+
+#include "il_internal.h"
+
+/* Only needed for MSVC++ unless extended to actually do something =) */
+#if defined(_WIN32) && defined(_MSC_VER)
+BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
+{
+ hModule; ul_reason_for_call; lpReserved;
+
+ if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
+ //ilInit();
+ }
+
+ return TRUE;
+}
+#endif
+
+