Skip to content

Commit 19c0612

Browse files
committed
Add header dependencies in codepage header
1 parent d8df3ae commit 19c0612

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

win32/codepage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ PW32CP const struct php_win32_cp *php_win32_cp_set_by_id(DWORD id)
420420
return cur_cp;
421421
}/*}}}*/
422422

423-
PW32CP BOOL php_win32_cp_use_unicode(void)
423+
PW32CP bool php_win32_cp_use_unicode(void)
424424
{/*{{{*/
425425
return 65001 == cur_cp->id;
426426
}/*}}}*/

win32/codepage.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ extern "C" {
2727
# define PW32CP __declspec(dllimport)
2828
#endif
2929

30+
#include <stddef.h>
31+
#include <stdbool.h>
32+
#include <wchar.h>
33+
#include <IntSafe.h>
34+
3035
#define PHP_WIN32_CP_IGNORE_LEN (0)
3136
#define PHP_WIN32_CP_IGNORE_LEN_P ((size_t *)-1)
3237

@@ -40,7 +45,7 @@ struct php_win32_cp {
4045
char *desc;
4146
};
4247

43-
PW32CP BOOL php_win32_cp_use_unicode(void);
48+
PW32CP bool php_win32_cp_use_unicode(void);
4449
PW32CP const struct php_win32_cp *php_win32_cp_do_setup(const char *);
4550
#define php_win32_cp_setup() php_win32_cp_do_setup(NULL)
4651
PW32CP const struct php_win32_cp *php_win32_cp_do_update(const char *);

0 commit comments

Comments
 (0)