~ubuntu-branches/ubuntu/vivid/aeolus/vivid

« back to all changes in this revision

Viewing changes to global.h

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-01-16 15:05:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100116150500-0o7d0fuj7hblpnup
Tags: 0.8.2-1
* New upstream version
* Add missing build-dependency on libreadline5-dev (Closes: #564849)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    Copyright (C) 2003-2008 Fons Adriaensen <fons@kokkinizita.net>
 
3
    Copyright (C) 2008 Hans Fugal <hans@fugal.net> (OSX version)
3
4
    
4
5
    This program is free software; you can redistribute it and/or modify
5
6
    it under the terms of the GNU General Public License as published by
21
22
#define __GLOBAL_H
22
23
 
23
24
 
 
25
#ifdef __APPLE__
 
26
#include <machine/endian.h>
 
27
#define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
 
28
#define __BIG_ENDIAN    __DARWIN_BIG_ENDIAN
 
29
#define __PDP_ENDIAN    __DARWIN_PDP_ENDIAN
 
30
#define __BYTE_ORDER    __DARWIN_BYTE_ORDER
 
31
#else
24
32
#include <endian.h>
25
 
#include "lfqueue.h"
26
 
 
 
33
#endif
27
34
 
28
35
#ifdef __BYTE_ORDER
29
36
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
37
44
#define RD2(p) ((p)[1] + ((p)[0] << 8));
38
45
#define RD4(p) ((p)[3] + ((p)[2] << 8) + ((p)[1] << 16) + ((p)[0] << 24));
39
46
#else
40
 
#error Byte order is undefined !
 
47
#error Byte order is not supported !
41
48
#endif
42
49
#else
43
50
#error Byte order is undefined !
44
51
#endif
45
52
 
 
53
#include "lfqueue.h"
 
54
 
46
55
 
47
56
enum // GLOBAL LIMITS 
48
57
{