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>
#ifndef _WIN32
#import <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>
#define GET_ERR GetLastError()
#define GET_SOCK_ERR WSAGetLastError()
#define ERRFMT "Error code was: %d"
#define ERRPARAM err
#endif
#import <objc/objc-api.h>
|
|
|
|
|
|
|
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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _WIN32
#include <errno.h>
#define GET_ERR errno
#define GET_SOCK_ERR errno
#define ERRFMT "Error string was: %s"
#define ERRPARAM strerror(err)
#else
#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>
|