00001 /* 00002 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation 00003 * 00004 * Author: Nikos Mavrogiannopoulos 00005 * 00006 * This file is part of GNUTLS. 00007 * 00008 * The GNUTLS library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation; either version 2.1 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00021 * USA 00022 * 00023 */ 00024 00025 #ifndef DEFINES_H 00026 # define DEFINES_H 00027 00028 #if HAVE_CONFIG_H 00029 # include "MHD_config.h" 00030 #endif 00031 00032 #include <stddef.h> 00033 #include <string.h> 00034 #include <stdlib.h> 00035 #include <stdio.h> 00036 #include <ctype.h> 00037 #include <limits.h> 00038 #include <stdint.h> 00039 00040 #ifdef NO_SSIZE_T 00041 # define HAVE_SSIZE_T 00042 typedef int ssize_t; 00043 #endif 00044 00045 #include <sys/types.h> 00046 #include <unistd.h> 00047 #include <sys/stat.h> 00048 #include <sys/socket.h> 00049 #include <time.h> 00050 00051 /* TODO check if these should go into config.h */ 00052 #define SIZEOF_UNSIGNED_INT 4 00053 #define SIZEOF_UNSIGNED_LONG 8 00054 #define SIZEOF_UNSIGNED_LONG_INT SIZEOF_UNSIGNED_LONG 00055 00056 /* some systems had problems with long long int, thus, 00057 * it is not used. 00058 */ 00059 typedef struct 00060 { 00061 unsigned char i[8]; 00062 } uint64; 00063 00064 #endif /* defines_h */
1.5.7.1