File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
#define NUITKAPYTHON_EMBED_BUILD
2
2
#define _FILE_OFFSET_BITS 64
3
3
#include "np_embed.h"
4
+ #ifdef _WIN32
5
+ #include <windows.h>
6
+ #endif
4
7
#include <ctype.h>
5
8
#include <stdarg.h>
6
9
Original file line number Diff line number Diff line change 6
6
#ifndef NUITKAEMBED
7
7
#define NUITKAEMBED
8
8
9
- #ifndef __ASSEMBLER__
9
+ #if !defined( __ASSEMBLER__ ) && !defined( BYPASS_NP_EMBED )
10
10
#ifdef __cplusplus
11
11
extern "C" {
12
12
#endif
@@ -16,12 +16,13 @@ extern "C" {
16
16
#endif
17
17
18
18
#ifdef FOPEN_MAX
19
- // This means that were were loaded too last so we can't intercept the necessary calls.
19
+ // This means that we were loaded too late so we can't intercept the necessary calls.
20
20
// Don't even try in that case.
21
21
#define NP_STDIO_ALREADY_LOADED
22
22
#include <fcntl.h>
23
23
#ifdef _WIN32
24
- #include <windows.h>
24
+ #include <wchar.h>
25
+ #include <BaseTsd.h>
25
26
#define PATH_MAX MAX_PATH
26
27
typedef SSIZE_T ssize_t ;
27
28
#else
@@ -33,7 +34,6 @@ extern "C" {
33
34
34
35
#ifdef _WIN32
35
36
#define _CRTIMP
36
- #include <WinSock2.h>
37
37
#endif
38
38
#ifndef NUITKAPYTHON_EMBED_BUILD
39
39
#define open orig_open
@@ -122,7 +122,8 @@ extern "C" {
122
122
#include <stdio.h>
123
123
#include <fcntl.h>
124
124
#ifdef _WIN32
125
- #include <windows.h>
125
+ #include <wchar.h>
126
+ #include <BaseTsd.h>
126
127
#define PATH_MAX MAX_PATH
127
128
typedef SSIZE_T ssize_t ;
128
129
#else
You can’t perform that action at this time.
0 commit comments