ObjFW  Check-in [efbb4a8eb4]

Overview
Comment:Fix building with --disable-sockets on Windows
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: efbb4a8eb4a7bddc7e5717e5037e2c97057447e188a8facd86684ebf94c99a21
User & Date: js on 2020-05-10 15:33:53
Other Links: manifest | tags
Context
2020-05-16
16:46
Do not require snprintf to return expected length check-in: c5beed7277 user: js tags: trunk
2020-05-10
15:33
Fix building with --disable-sockets on Windows check-in: efbb4a8eb4 user: js tags: trunk
2020-05-09
13:41
Add tests for OFSCTPSocket check-in: 0765df9754 user: js tags: trunk
Changes

Modified src/exceptions/OFException.m from [3cf46d2139] to [91a0048000].

86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifdef HAVE_STRERROR_R
	char buffer[256];
#endif

	if (errNo == 0)
		return @"Unknown error";

#ifdef OF_WINDOWS
	/*
	 * These were translated from WSAE* errors to errno and thus Win32's
	 * strerror_r() does not know about them.
	 *
	 * FIXME: These could have better descriptions!
	 */
	switch (errNo) {







|







86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifdef HAVE_STRERROR_R
	char buffer[256];
#endif

	if (errNo == 0)
		return @"Unknown error";

#if defined(OF_WINDOWS) && defined(OF_HAVE_SOCKETS)
	/*
	 * These were translated from WSAE* errors to errno and thus Win32's
	 * strerror_r() does not know about them.
	 *
	 * FIXME: These could have better descriptions!
	 */
	switch (errNo) {