Skip to content

Commit 6cf25a7

Browse files
committed
#define UNICODE in more places
fixes garbled error messages from System.Win32 functions
1 parent d18dff2 commit 6cf25a7

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

cbits/diatemp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
*/
1212

13+
#define UNICODE
1314
#include <windows.h>
1415
#include <wchar.h>
1516
#include <stdlib.h>

cbits/dumpBMP.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* #include <windows.h>
1717
*
1818
\**************************************************************************/
19+
#define UNICODE
1920
#include <windows.h>
2021
#include <stdio.h>
2122
#include "dumpBMP.h"

cbits/ellipse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define UNICODE
12
#include <windows.h>
23
#include <math.h>
34

cbits/errors.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define UNICODE
12
#include <stdio.h>
23
#include <stdlib.h>
34
#include <windows.h>

include/HsGDI.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef __HSGDI_H
22
#define __HSGDI_H
33

4+
#define UNICODE
45
#include <windows.h>
56

67
#ifndef INLINE

include/WndProc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef __WNDPROC_H
22
#define __WNDPROC_H
33

4+
#define UNICODE
45
#include <windows.h>
56

67
extern LRESULT CALLBACK genericWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

0 commit comments

Comments
 (0)