File: config.h

package info (click to toggle)
ns2 2.35%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 78,780 kB
  • ctags: 27,490
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (66 lines) | stat: -rw-r--r-- 1,615 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* 
 * COPYRIGHT AND DISCLAIMER
 * 
 * Copyright (C) 1996-1997 by the Regents of the University of California.
 *
 * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
 * OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
 * EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS
 * PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO
 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
 * MODIFICATIONS.
 *
 * For inquiries email Steve Gribble <gribble@cs.berkeley.edu>.
 */

#ifndef _CONFIG_H
#define _CONFIG_H

#include <assert.h>
#include <memory.h>
#include <string.h>

/*
 *  The following should be replaced
 */

#define SIZEOF_INT 4
#define SIZEOF_LONG 4

#if     SIZEOF_LONG == 4
typedef unsigned long UINT32;
#ifndef JPEGLIB_H
typedef signed long    INT32;
#endif
#elif   SIZEOF_INT == 4
typedef unsigned int  UINT32;
#ifndef JPEGLIB_H
typedef signed int     INT32;
#endif
#endif
#if     SIZEOF_INT == 2
#ifndef JPEGLIB_H
typedef unsigned int   UINT16;
#endif
#ifndef JPEGLIB_H
typedef signed int      INT16;
#endif
#else
#ifndef JPEGLIB_H
typedef unsigned short UINT16;
#endif
#ifndef JPEGLIB_H
typedef signed short    INT16;
#endif
#endif

#include <stdlib.h>

#endif /*ifndef _CONFIG_H */