[CMAKE]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 21 Nov 2010 19:47:55 +0000 (19:47 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 21 Nov 2010 19:47:55 +0000 (19:47 +0000)
Allow no entrypoint for MSVC and use no entrypoint in genincdata to silence warning

svn path=/branches/cmake-bringup/; revision=49697

include/asm/CMakeLists.txt
include/asm/genincdata.c
msc.cmake

index 8a41972..32f70eb 100644 (file)
@@ -1,7 +1,7 @@
 
 add_library(genincdata SHARED genincdata.c)
 
-set_entrypoint(genincdata DummyEntry)
+set_entrypoint(genincdata 0)
 add_dependencies(genincdata bugcodes)
 
 if(MSVC)
index 0b4cf03..fca6060 100644 (file)
@@ -77,7 +77,3 @@ ASMGENDATA Table[] =
     {TYPE_END, "", 0}
 };
 
-LONG NTAPI DummyEntry(HANDLE hinstDLL, ULONG fdwReason, PVOID lpvReserved)
-{
-    return 0;
-}
index 06619f3..413da1c 100644 (file)
--- a/msc.cmake
+++ b/msc.cmake
@@ -46,7 +46,7 @@ endmacro()
 \r
 macro(set_entrypoint MODULE ENTRYPOINT)\r
     if(${ENTRYPOINT} STREQUAL "0")\r
-        add_linkerflag(${MODULE} "/ENTRY:0")\r
+        add_linkerflag(${MODULE} "/NOENTRY")\r
     else()\r
         add_linkerflag(${MODULE} "/ENTRY:${ENTRYPOINT}")\r
     endif()\r