Version 1.7.10.
[gnutls.git] / lib / defines.h
blob9e63b3e29cda11266245fba4d55cea6bc86db02d
1 /*
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
4 * Author: Nikos Mavroyanopoulos
6 * This file is part of GNUTLS.
8 * The GNUTLS library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21 * USA
25 #ifndef DEFINES_H
26 # define DEFINES_H
28 #if HAVE_CONFIG_H
29 # include <config.h>
30 #endif
32 #include <stddef.h>
33 #include <string.h>
34 #include <stdlib.h>
35 #include <stdio.h>
36 #include <ctype.h>
37 #include <limits.h>
38 #include <stdint.h>
40 #ifdef NO_SSIZE_T
41 # define HAVE_SSIZE_T
42 typedef int ssize_t;
43 #endif
45 #include <sys/types.h>
46 #include <unistd.h>
47 #include <sys/stat.h>
48 #include <sys/socket.h>
49 #include <time.h>
51 #define SIZEOF_UNSIGNED_LONG_INT SIZEOF_UNSIGNED_LONG
53 /* some systems had problems with long long int, thus,
54 * it is not used.
56 typedef struct
58 unsigned char i[8];
59 } uint64;
61 #endif /* defines_h */