Author: akhaldi
Date: Mon Sep 23 21:54:01 2013
New Revision: 60347
URL:
http://svn.reactos.org/svn/reactos?rev=60347&view=rev
Log:
[GDI32_APITEST]
* Fix GCC warnings.
* Enable -Werror again.
* Remove redundant test header inclusion.
* Speedup linking.
Modified:
trunk/rostests/apitests/gdi32/AddFontResource.c
trunk/rostests/apitests/gdi32/CMakeLists.txt
Modified: trunk/rostests/apitests/gdi32/AddFontResource.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/AddFontRes…
==============================================================================
--- trunk/rostests/apitests/gdi32/AddFontResource.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32/AddFontResource.c [iso-8859-1] Mon Sep 23 21:54:01 2013
@@ -5,9 +5,8 @@
* PROGRAMMERS: Timo Kreuzer
*/
+#include <stdio.h>
#include <apitest.h>
-
-#include <wine/test.h>
#include <wingdi.h>
#define COUNT 26
Modified: trunk/rostests/apitests/gdi32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/CMakeLists…
==============================================================================
--- trunk/rostests/apitests/gdi32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32/CMakeLists.txt [iso-8859-1] Mon Sep 23 21:54:01 2013
@@ -1,5 +1,4 @@
-add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/win32ss)
list(APPEND SOURCE
@@ -62,14 +61,8 @@
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})
-target_link_libraries(gdi32_apitest wine ${PSEH_LIB})
+target_link_libraries(gdi32_apitest ${PSEH_LIB})
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)