~ubuntu-branches/ubuntu/lucid/unrar-nonfree/lucid

« back to all changes in this revision

Viewing changes to os.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Meredith
  • Date: 2009-06-06 17:46:05 UTC
  • mfrom: (1.1.11 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090606174605-h4ciqxlpy39jmjx0
Tags: 1:3.9.3-1
* New upstream release
* Updated Copyright file (Closes: #531432)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  #include <shellapi.h>
37
37
  #include <shlobj.h>
38
38
  #include <winioctl.h>
39
 
#endif
40
 
 
41
 
#endif
 
39
 
 
40
 
 
41
#endif // _WIN_CE
 
42
 
 
43
 
 
44
#endif // _WIN_32
42
45
 
43
46
#ifndef _WIN_CE
44
47
  #include <sys/types.h>
45
48
  #include <sys/stat.h>
46
49
  #include <dos.h>
47
 
#endif
 
50
#endif // _WIN_CE
48
51
 
49
52
#if !defined(_EMX) && !defined(_MSC_VER) && !defined(_WIN_CE)
50
53
  #include <dir.h>
51
54
#endif
52
55
#ifdef _MSC_VER
53
 
  #define for if (0) ; else for
54
 
#ifndef _WIN_CE
55
 
  #include <direct.h>
56
 
#endif
 
56
  #if _MSC_VER<1500
 
57
    #define for if (0) ; else for
 
58
  #endif
 
59
  #ifndef _WIN_CE
 
60
    #include <direct.h>
 
61
  #endif
57
62
#else
58
63
  #include <dirent.h>
59
 
#endif
 
64
#endif // _MSC_VER
60
65
 
61
66
#ifndef _WIN_CE
62
67
  #include <share.h>
63
 
#endif
 
68
#endif // _WIN_CE
64
69
 
65
70
#if defined(ENABLE_BAD_ALLOC) && !defined(_WIN_CE)
66
71
  #include <new.h>
102
107
/*
103
108
#ifdef _WIN_32
104
109
#pragma hdrstop
105
 
#endif
 
110
#endif // _WIN_32
106
111
*/
107
112
 
108
113
#define ENABLE_ACCESS
218
223
 
219
224
#define safebuf static
220
225
 
 
226
#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
 
227
  #if defined(__i386) || defined(i386) || defined(__i386__)
 
228
    #define LITTLE_ENDIAN
 
229
  #elif defined(BYTE_ORDER) && BYTE_ORDER == LITTLE_ENDIAN
 
230
    #define LITTLE_ENDIAN
 
231
  #elif defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
 
232
    #define BIG_ENDIAN
 
233
  #else
 
234
    #error "Neither LITTLE_ENDIAN nor BIG_ENDIAN are defined. Define one of them."
 
235
  #endif
 
236
#endif
 
237
 
221
238
#if defined(LITTLE_ENDIAN) && defined(BIG_ENDIAN)
222
239
  #if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
223
240
    #undef LITTLE_ENDIAN
224
241
  #elif defined(BYTE_ORDER) && BYTE_ORDER == LITTLE_ENDIAN
225
242
    #undef BIG_ENDIAN
226
243
  #else
227
 
    #error "Both LITTLE_ENDIAN and BIG_ENDIAN are defined. Undef something one"
 
244
    #error "Both LITTLE_ENDIAN and BIG_ENDIAN are defined. Undef one of them."
228
245
  #endif
229
246
#endif
230
247