FreeBASIC  0.91.0
fb_xbox.h
Go to the documentation of this file.
1 #include <hal/xbox.h>
2 #include <hal/fileio.h>
3 
4 #define FBCALL __stdcall
5 
6 /* newline for console/file I/O */
7 #define FB_NEWLINE "\r\n"
8 #define FB_NEWLINE_WSTR _LC("\r\n")
9 
10 /* newline for printer I/O */
11 #define FB_BINARY_NEWLINE "\r\n"
12 #define FB_BINARY_NEWLINE_WSTR _LC("\r\n")
13 #define FB_LL_FMTMOD "ll"
14 #define FB_CONSOLE_MAXPAGES 1
15 #define FB_DYLIB HANDLE
16 
17 typedef long fb_off_t;
18 #define fseeko(stream, offset, whence) fseek(stream, offset, whence)
19 #define ftello(stream) ftell(stream)
20 
21 /* WinNT constants - !!!FIXME!!! these belong in openxdk headers */
22 #define Executive 0
23 #define KernelMode 0
24 #define UserMode 1
25 
26 /* These functions are not present in the OpenXDK's headers */
27 int swprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, ...);
28 double wcstod(const wchar_t*, wchar_t**);
29 unsigned long wcstoul(const wchar_t *, wchar_t **, int);
30 unsigned long long wcstoull(const wchar_t * __restrict__, wchar_t ** __restrict__, int);