-spec2def(normaliz.dll normaliz.spec)
-add_library(normaliz SHARED dummy.c ${CMAKE_CURRENT_BINARY_DIR}/normaliz.def)
-set_entrypoint(normaliz 0)
-add_importlibs(normaliz kernel32)
-add_dependencies(normaliz psdk)
+remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
+add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
+
+spec2def(normaliz.dll normaliz.spec ADD_IMPORTLIB)
+
+list(APPEND SOURCE
+ IdnToAscii.c
+ IdnToUnicode.c
+ nameprep.c
+ normalize.c
+ ${CMAKE_CURRENT_BINARY_DIR}/normaliz.def)
+
+add_library(normaliz SHARED ${SOURCE})
+set_module_type(normaliz win32dll ENTRYPOINT 0)
+add_importlibs(normaliz msvcrt kernel32 ntdll)
+add_cd_file(TARGET normaliz DESTINATION reactos/system32 FOR all)
- @ stdcall IdnToAscii(long wstr long wstr long) kernel32.IdnToAscii
- @ stdcall IdnToNameprepUnicode(long wstr long wstr long) kernel32.IdnToNameprepUnicode
- @ stdcall IdnToUnicode(long wstr long wstr long) kernel32.IdnToUnicode
- @ stdcall IsNormalizedString(long wstr long) kernel32.IsNormalizedString
- @ stdcall NormalizeString(long wstr long wstr long) kernel32.NormalizeString
+@ stdcall IdnToAscii(long wstr long ptr long)
+@ stdcall IdnToNameprepUnicode(long wstr long ptr long)
+@ stdcall IdnToUnicode(long wstr long ptr long)
+@ stdcall IsNormalizedString(long wstr long)
+@ stdcall NormalizeString(long wstr long ptr long)
--- /dev/null
+/*
+ * Locale support
+ *
+ * Copyright 1995 Martin von Loewis
+ * Copyright 1998 David Lee Lambert
+ * Copyright 2000 Julio César Gázquez
+ * Copyright 2002 Alexandre Julliard for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#define WIN32_NO_STATUS
+#include <wine/unicode.h>
+
+#define NDEBUG
+#include <debug.h>
+
+/* Taken from Wine kernel32/locale.c */
+
+/******************************************************************************
+ * NormalizeString (KERNEL32.@)
+ */
+INT WINAPI NormalizeString(NORM_FORM NormForm, LPCWSTR lpSrcString, INT cwSrcLength,
+ LPWSTR lpDstString, INT cwDstLength)
+{
+ DPRINT1("%x %p %d %p %d\n", NormForm, lpSrcString, cwSrcLength, lpDstString, cwDstLength);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/******************************************************************************
+ * IsNormalizedString (KERNEL32.@)
+ */
+BOOL WINAPI IsNormalizedString(NORM_FORM NormForm, LPCWSTR lpString, INT cwLength)
+{
+ DPRINT1("%x %p %d\n", NormForm, lpString, cwLength);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
\ No newline at end of file
set_module_type(wininet win32dll)
target_link_libraries(wininet wine ${PSEH_LIB} zlib)
add_delay_importlibs(wininet secur32 crypt32 cryptui)
-add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 kernel32_vista msvcrt kernel32 ntdll)
+add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 normaliz kernel32_vista msvcrt kernel32 ntdll)
add_pch(wininet internet.h SOURCE)
add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all)