~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to ros-privexp/mingw-w64-crt/include/oscalls.h

  • Committer: NightStrike
  • Date: 2010-08-11 22:20:57 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:3266
Branch for adding option for supporting ros

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This file has no copyright assigned and is placed in the Public Domain.
 
3
 * This file is part of the w64 mingw-runtime package.
 
4
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 
5
 */
 
6
 
 
7
#ifndef _INC_OSCALLS
 
8
#define _INC_OSCALLS
 
9
 
 
10
#ifndef _CRTBLD
 
11
#error ERROR: Use of C runtime library internal header file.
 
12
#endif
 
13
 
 
14
#include <crtdefs.h>
 
15
 
 
16
#ifdef NULL
 
17
#undef NULL
 
18
#endif
 
19
 
 
20
#define NOMINMAX
 
21
 
 
22
#define _WIN32_FUSION 0x0100
 
23
#include <windows.h>
 
24
 
 
25
#ifndef NULL
 
26
#ifdef __cplusplus
 
27
#define NULL 0
 
28
#else
 
29
#define NULL ((void *)0)
 
30
#endif
 
31
#endif
 
32
 
 
33
#ifdef _MSC_VER
 
34
#pragma warning(push)
 
35
#pragma warning(disable:4214)
 
36
#endif
 
37
 
 
38
typedef struct _FTIME
 
39
{
 
40
  unsigned short twosecs : 5;
 
41
  unsigned short minutes : 6;
 
42
  unsigned short hours : 5;
 
43
} FTIME;
 
44
 
 
45
typedef FTIME *PFTIME;
 
46
 
 
47
typedef struct _FDATE
 
48
{
 
49
  unsigned short day : 5;
 
50
  unsigned short month : 4;
 
51
  unsigned short year : 7;
 
52
} FDATE;
 
53
 
 
54
#ifdef _MSC_VER
 
55
#pragma warning(pop)
 
56
#endif
 
57
 
 
58
typedef FDATE *PFDATE;
 
59
 
 
60
#endif