ObjFW  Check-in [5e5ca921cb]

Overview
Comment:Fix compiling ObjC++ on Windows
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5e5ca921cb01e3bcad912002ed35563d25020e6fa9d06371858c14cb10e36226
User & Date: js on 2024-11-04 00:10:23
Other Links: manifest | tags
Context
2024-11-04
00:11
Fix missing #ifdef in ObjFW.h check-in: a5b3cd8cce user: js tags: trunk
00:10
Fix compiling ObjC++ on Windows check-in: 5e5ca921cb user: js tags: trunk
2024-11-03
23:52
runtime: Fix handling C++ exceptions check-in: 691290ca0f user: js tags: trunk
Changes

Modified src/OFApplication.h from [ac4321c991] to [4a3043d514].

89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106








107
108
109
110
111
112
113
89
90
91
92
93
94
95



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118







-
-
-








+
+
+
+
+
+
+
+







		    (class_ *)[[class_ alloc] init]);			\
	}								\
									\
	WINAPI int							\
	WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,		\
	    LPSTR lpCmdLine, int nShowCmd)				\
	{								\
		extern void __getmainargs(int *, char ***, char ***,	\
		    int, int *);					\
		extern int _CRT_glob;					\
		int argc = 0, si = 0;					\
		char **argv = NULL, **envp = NULL;			\
									\
		__getmainargs(&argc, &argv, &envp, _CRT_glob, &si);	\
									\
		return OFApplicationMain(&argc, &argv,			\
		    (class_ *)[[class_ alloc] init]);			\
	}
# ifdef __cplusplus
extern "C" {
# endif
extern void __getmainargs(int *, char ***, char ***, int, int *);
extern int _CRT_glob;
# ifdef __cplusplus
}
# endif
#endif

#ifdef OF_HAVE_PLEDGE
# define OF_HAVE_SANDBOX
#endif

/**