Pyrogenesis
HEAD
Pyrogenesis, a RTS Engine
wposix_types.h
Go to the documentation of this file.
1
/* Copyright (C) 2026 Wildfire Games.
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining
4
* a copy of this software and associated documentation files (the
5
* "Software"), to deal in the Software without restriction, including
6
* without limitation the rights to use, copy, modify, merge, publish,
7
* distribute, sublicense, and/or sell copies of the Software, and to
8
* permit persons to whom the Software is furnished to do so, subject to
9
* the following conditions:
10
*
11
* The above copyright notice and this permission notice shall be included
12
* in all copies or substantial portions of the Software.
13
*
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
*/
22
23
/*
24
* type definitions needed for wposix.
25
*/
26
27
#ifndef INCLUDED_WPOSIX_TYPES
28
#define INCLUDED_WPOSIX_TYPES
29
30
#include <cstdint>
31
32
//
33
// <sys/types.h>
34
//
35
36
typedef
intptr_t
ssize_t
;
37
// prevent wxWidgets from (incompatibly) redefining it
38
#define HAVE_SSIZE_T
39
// prevent cpp-httplib from (incompatibly) redefining it
40
#define _SSIZE_T_DEFINED
41
42
// VC9 defines off_t as long, but we need 64-bit file offsets even in
43
// 32-bit builds. to avoid conflicts, we have to define _OFF_T_DEFINED,
44
// which promises _off_t has also been defined. since that's used by
45
// CRT headers, we have to define it too, but must use the original
46
// long type to avoid breaking struct stat et al.
47
typedef
__int64
off_t
;
48
typedef
long
_off_t
;
49
#define _OFF_T_DEFINED
50
51
52
//
53
// <limits.h>
54
//
55
56
// Win32 MAX_PATH is 260; our number may be a bit more efficient.
57
#define PATH_MAX 256u
58
59
#endif
// #ifndef INCLUDED_WPOSIX_TYPES
_off_t
long _off_t
Definition:
wposix_types.h:48
off_t
__int64 off_t
Definition:
wposix_types.h:47
ssize_t
intptr_t ssize_t
Definition:
wposix_types.h:36
source
lib
sysdep
os
win
wposix
wposix_types.h
Generated by
1.9.4