1 #ifndef _REACTOS_SUPPORT_CODE_H
2 #define _REACTOS_SUPPORT_CODE_H
17 // isotypes.h would provide these, but it's not available on MSVC < 2013.
18 typedef unsigned char uint8_t;
19 typedef unsigned short uint16_t;
20 typedef unsigned int uint32_t;
21 typedef unsigned long long uint64_t;
23 void isohybrid_error(int eval
, const char* fmt
, ...);
24 void isohybrid_warning(const char* fmt
, ...);
26 #define err(...) isohybrid_error(__VA_ARGS__)
27 #define errx(...) isohybrid_error(__VA_ARGS__)
28 #define warn(...) isohybrid_warning(__VA_ARGS__)
29 #define warnx(...) isohybrid_warning(__VA_ARGS__)
32 /////////////////////////////////////////////////////////////////////////////
33 // getopt code from mingw-w64
34 /////////////////////////////////////////////////////////////////////////////
35 extern int optopt
; /* single option character, as parsed */
36 extern char *optarg
; /* pointer to argument of current option */
38 struct option
/* specification for a long form option... */
40 const char *name
; /* option name, without leading hyphens */
41 int has_arg
; /* does it take an argument? */
42 int *flag
; /* where to save its status, or NULL */
43 int val
; /* its associated status value */
46 enum /* permitted values for its `has_arg' field... */
48 no_argument
= 0, /* option never takes an argument */
49 required_argument
, /* option always requires an argument */
50 optional_argument
/* option may take an argument */
53 int getopt_long_only(int nargc
, char * const *nargv
, const char *options
, const struct option
*long_options
, int *idx
);
54 /////////////////////////////////////////////////////////////////////////////
62 #define fseeko _fseeki64
63 #define ftruncate _chsize