Refactored cr_off{32,64} definitions to its own header file to avoid collisions
This commit is contained in:
parent
a76e828dc7
commit
900a1e0a29
3 changed files with 13 additions and 9 deletions
|
@ -31,12 +31,10 @@
|
|||
# define _WIN32_WINNT 0x0502
|
||||
# include <windows.h>
|
||||
|
||||
# include <stdint.h>
|
||||
|
||||
typedef int32_t cr_off32;
|
||||
typedef int64_t cr_off64;
|
||||
|
||||
# if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
|
||||
# include "off_t.h"
|
||||
|
||||
# if !defined(__MINGW64__)
|
||||
# define off_t cr_off32
|
||||
# else
|
||||
|
|
9
src/compat/off_t.h
Normal file
9
src/compat/off_t.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#ifndef OFF_T_H_
|
||||
# define OFF_T_H_
|
||||
|
||||
# include <stdint.h>
|
||||
|
||||
typedef int32_t cr_off32;
|
||||
typedef int64_t cr_off64;
|
||||
|
||||
#endif /* !OFF_T_H_ */
|
|
@ -42,10 +42,7 @@
|
|||
# endif
|
||||
# if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
|
||||
# include <stdint.h>
|
||||
|
||||
typedef int32_t cr_off32;
|
||||
typedef int64_t cr_off64;
|
||||
# include "off_t.h"
|
||||
|
||||
# if !defined(__MINGW64__)
|
||||
# define off_t cr_off32
|
||||
|
|
Loading…
Add table
Reference in a new issue