2 d18ca0b8 2002-03-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 d18ca0b8 2002-03-12 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 d18ca0b8 2002-03-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 d18ca0b8 2002-03-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 d18ca0b8 2002-03-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 d18ca0b8 2002-03-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 d18ca0b8 2002-03-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 d18ca0b8 2002-03-12 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
12 6725d789 2002-12-12 alex * $Id: portab.h,v 1.9 2002/12/12 11:26:08 alex Exp $
14 d18ca0b8 2002-03-12 alex * portab.h: "Portabilitaets-Definitionen"
18 d18ca0b8 2002-03-12 alex #ifndef __PORTAB__
19 d18ca0b8 2002-03-12 alex #define __PORTAB__
22 d18ca0b8 2002-03-12 alex #include "config.h"
25 ba258e65 2002-05-27 alex /* Compiler Features */
27 6725d789 2002-12-12 alex #ifdef __GNUC__
28 6725d789 2002-12-12 alex # define PUNUSED(x) __attribute__ ((unused)) x
29 6725d789 2002-12-12 alex # define UNUSED __attribute__ ((unused))
31 6725d789 2002-12-12 alex # define PUNUSED(x) x
32 6725d789 2002-12-12 alex # define UNUSED
35 ba258e65 2002-05-27 alex #ifndef PARAMS
36 ba258e65 2002-05-27 alex # if PROTOTYPES
37 ba258e65 2002-05-27 alex # define PARAMS(args) args
39 ba258e65 2002-05-27 alex # define PARAMS(args) ()
44 d18ca0b8 2002-03-12 alex /* Keywords */
46 d18ca0b8 2002-03-12 alex #define EXTERN extern
47 d18ca0b8 2002-03-12 alex #define STATIC static
48 d18ca0b8 2002-03-12 alex #define LOCAL static
49 d18ca0b8 2002-03-12 alex #define CONST const
50 cf9629b9 2002-06-26 alex #define REGISTER register
53 d18ca0b8 2002-03-12 alex /* Datatentypen */
55 ba258e65 2002-05-27 alex #ifndef PROTOTYPES
56 ba258e65 2002-05-27 alex # ifndef signed
57 ba258e65 2002-05-27 alex # define signed
61 d18ca0b8 2002-03-12 alex typedef void VOID;
62 d18ca0b8 2002-03-12 alex typedef void POINTER;
64 d18ca0b8 2002-03-12 alex typedef signed int INT;
65 d18ca0b8 2002-03-12 alex typedef unsigned int UINT;
66 84022a12 2002-10-09 alex typedef signed long LONG;
67 84022a12 2002-10-09 alex typedef unsigned long ULONG;
69 d18ca0b8 2002-03-12 alex typedef signed char INT8;
70 d18ca0b8 2002-03-12 alex typedef unsigned char UINT8;
71 d18ca0b8 2002-03-12 alex typedef signed short INT16;
72 d18ca0b8 2002-03-12 alex typedef unsigned short UINT16;
73 d18ca0b8 2002-03-12 alex typedef signed long INT32;
74 d18ca0b8 2002-03-12 alex typedef unsigned long UINT32;
76 84022a12 2002-10-09 alex typedef double DOUBLE;
77 d18ca0b8 2002-03-12 alex typedef float FLOAT;
79 d18ca0b8 2002-03-12 alex typedef char CHAR;
81 d18ca0b8 2002-03-12 alex typedef UINT8 BOOLEAN;
84 d18ca0b8 2002-03-12 alex #define TRUE (BOOLEAN)1
86 d18ca0b8 2002-03-12 alex #undef FALSE
87 d18ca0b8 2002-03-12 alex #define FALSE (BOOLEAN)0
90 ba258e65 2002-05-27 alex #ifdef PROTOTYPES
91 ba258e65 2002-05-27 alex # define NULL (VOID *)0
93 ba258e65 2002-05-27 alex # define NULL 0L
96 d18ca0b8 2002-03-12 alex #undef GLOBAL
97 d18ca0b8 2002-03-12 alex #define GLOBAL
100 8d79f267 2002-03-25 alex /* SPLint */
103 8d79f267 2002-03-25 alex #ifdef S_SPLINT_S
104 8d79f267 2002-03-25 alex #include "splint.h"
108 d18ca0b8 2002-03-12 alex /* configure-Optionen */
110 d18ca0b8 2002-03-12 alex #ifndef HAVE_socklen_t
111 d18ca0b8 2002-03-12 alex #define socklen_t int /* u.a. fuer Mac OS X */
114 d18ca0b8 2002-03-12 alex #if OS_UNIX_AUX
115 d18ca0b8 2002-03-12 alex #define _POSIX_SOURCE /* muss unter A/UX definiert sein */
119 d18ca0b8 2002-03-12 alex /* Konstanten */
121 7049b60a 2002-03-12 alex #ifndef TARGET_OS
122 7049b60a 2002-03-12 alex #define TARGET_OS "unknown"
125 7049b60a 2002-03-12 alex #ifndef TARGET_CPU
126 7049b60a 2002-03-12 alex #define TARGET_CPU "unknown"
129 7049b60a 2002-03-12 alex #ifndef TARGET_VENDOR
130 7049b60a 2002-03-12 alex #define TARGET_VENDOR "unknown"
137 d18ca0b8 2002-03-12 alex /* -eof- */