[GDI32_APITEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 23 Sep 2013 21:54:01 +0000 (21:54 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 23 Sep 2013 21:54:01 +0000 (21:54 +0000)
* Fix GCC warnings.
* Enable -Werror again.
* Remove redundant test header inclusion.
* Speedup linking.

svn path=/trunk/; revision=60347

rostests/apitests/gdi32/AddFontResource.c
rostests/apitests/gdi32/CMakeLists.txt

index 6a67699..8f6aede 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
+#include <stdio.h>
 #include <apitest.h>
 #include <apitest.h>
-
-#include <wine/test.h>
 #include <wingdi.h>
 
 #define COUNT 26
 #include <wingdi.h>
 
 #define COUNT 26
index d63a183..136ee41 100644 (file)
@@ -1,5 +1,4 @@
 
 
-add_definitions(-D_DLL -D__USE_CRTIMP)
 include_directories(${REACTOS_SOURCE_DIR}/win32ss)
 
 list(APPEND SOURCE
 include_directories(${REACTOS_SOURCE_DIR}/win32ss)
 
 list(APPEND SOURCE
@@ -62,14 +61,8 @@ list(APPEND SOURCE
     init.c
     testlist.c)
 
     init.c
     testlist.c)
 
-if(NOT MSVC)
-    # FIXME: http://www.cmake.org/Bug/view.php?id=12998
-    #allow_warnings(gdi32_apitest)
-    set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
-endif()
-
 add_executable(gdi32_apitest ${SOURCE})
 add_executable(gdi32_apitest ${SOURCE})
-target_link_libraries(gdi32_apitest wine ${PSEH_LIB})
+target_link_libraries(gdi32_apitest ${PSEH_LIB})
 set_module_type(gdi32_apitest win32cui)
 set_module_type(gdi32_apitest win32cui)
-add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
+add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32)
 add_cd_file(TARGET gdi32_apitest DESTINATION reactos/bin FOR all)
 add_cd_file(TARGET gdi32_apitest DESTINATION reactos/bin FOR all)