deleted file mode 100755
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-# Replace all occurences of TEXT() in our codebase
-# to convert it to simpler Unicode-only code.
-
-set -x
-
-sed -i -E \
- -e 's/TEXT\(("[^"]*")\)/L\1/g' \
- -e 's/TEXT\(([^)]*)\)/L\1/g' \
- -e 's/_T\(/_L(/g' \
- -e 's/" LPRIsLPTSTR L"/ls/g' \
- -e 's/" LPRIsLPTSTR/ls"/g' \
- -e 's/LPRIsLPTSTR L"/L"ls/g' \
- -e 's/" LPRIsLPOLESTR L"/ls/g' \
- -e 's/LPRIsLPOLESTR L"/L"ls/g' \
- -e 's/" LPRIsLPOLESTR/ls"/g' \
- -e 's/" PRIsLPTSTR "/ls/g' \
- -e 's/" PRIsLPOLESTR "/ls/g' \
- -e 's/TCHAR/WCHAR/g' \
- -e 's/LPTSTR/LPWSTR/g' \
- -e 's/LPCTSTR/LPCWSTR/g' \
- -e 's/LPRIXGUID/_L(PRIXGUID)/g' \
- -e 's/LTAP_WIN_COMPONENT_ID/_L(TAP_WIN_COMPONENT_ID)/g' \
- -e 's/LPACKAGE_(VERSION|NAME)/_L(PACKAGE_\1)/g' \
- -e 's/LPACKAGE /_L(PACKAGE) /g' \
- -e 's/_tcslen/wcslen/g' \
- -e 's/_tcszlen/wcszlen/g' \
- -e 's/_tcsrchr/wcsrchr/g' \
- -e 's/_tcschr/wcschr/g' \
- -e 's/_tcsstr/wcsstr/g' \
- -e 's/_tcszistr/wcszistr/g' \
- -e 's/_tcscpy/wcscpy/g' \
- -e 's/_tcsicmp/wcsicmp/g' \
- -e 's/_tcsdup/wcsdup/g' \
- -e 's/_istspace/iswspace/g' \
- -e 's/_stprintf/swprintf/g' \
- -e 's/_ftprintf/fwprintf/g' \
- -e 's/_tmain/wmain/g' \
- -e 's/tchar\.h/wchar.h/g' \
- src/openvpnmsica/*.[ch] \
- src/openvpnserv/*.[ch] \
- src/tapctl/*.[ch]
-
-# manual cleanup for complicated cases
-sed -i -E \
- -e 's/error 0x%x.\\n"\),/error 0x%x).\\n",/g' \
- src/tapctl/main.c
-sed -i -E \
- -e 's/" is optional\\n"\),/") is optional\\n",/g' \
- src/openvpnserv/service.c
@@ -24,11 +24,6 @@
#ifndef _SERVICE_H
#define _SERVICE_H
-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -22,13 +22,11 @@
#ifndef BASIC_H
#define BASIC_H
-#ifdef _UNICODE
-#define PRIsLPWSTR "ls"
-#define PRIsLPOLESTR "ls"
-#else
-#define PRIsLPWSTR "s"
-#define PRIsLPOLESTR "ls"
+/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
#endif
+
#define PRIXGUID "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}"
#define PRIGUID_PARAM(g) \
(g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]