ObjFW  Diff

Differences From Artifact [56da576dd7]:

To Artifact [0ea43d29eb]:


8
9
10
11
12
13
14
15
16
17



18
19
20

21
22
23
24
25
26

27
28
29
30
31
32
33
8
9
10
11
12
13
14



15
16
17
18
19

20
21
22
23
24
25

26
27
28
29
30
31
32
33







-
-
-
+
+
+


-
+





-
+







 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.
 */

#import "config.h"

#define _GNU_SOURCE
#import <stdio.h>
#import <stdlib.h>
#import <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifndef _WIN32
#import <errno.h>
#include <errno.h>
#define GET_ERR	     errno
#define GET_SOCK_ERR errno
#define ERRFMT	     "Error string was: %s"
#define ERRPARAM     strerror(err)
#else
#import <windows.h>
#include <windows.h>
#define GET_ERR	     GetLastError()
#define GET_SOCK_ERR WSAGetLastError()
#define ERRFMT	     "Error code was: %d"
#define ERRPARAM     err
#endif

#import <objc/objc-api.h>