Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add headers for use with autoconf (missing from previous checkin) (CVS 4825) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4513a5f493bb612134d04685c0d6777e |
User & Date: | mlcreech 2008-03-06 07:36:18.000 |
Context
2008-03-06
| ||
07:51 | Actually use TARGET_CFLAGS on autoconf-driven builds (CVS 4826) (check-in: dda3d65899 user: mlcreech tags: trunk) | |
07:36 | Add headers for use with autoconf (missing from previous checkin) (CVS 4825) (check-in: 4513a5f493 user: mlcreech tags: trunk) | |
07:35 | Use intptr_t definition to silence warnings about ptr-int casts (CVS 4824) (check-in: 54839a84e6 user: mlcreech tags: trunk) | |
Changes
Added src/common.h.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | /* ** 2008 March 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Common includes/defines based on output of configure script ** ** @(#) $Id: common.h,v 1.1 2008/03/06 07:36:18 mlcreech Exp $ */ #ifndef _COMMON_H_ #define _COMMON_H_ /* ** Include the configuration header output by 'configure' if it was run ** (otherwise we get an empty default). */ #include "config.h" /* Needed for various definitions... */ #define _GNU_SOURCE /* ** Include standard header files as necessary */ #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif #ifdef HAVE_STDINT_H #include <stdint.h> #endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> #endif /* ** If possible, use the C99 intptr_t type to define an integral type of ** equivalent size to a pointer. (Technically it's >= sizeof(void *), but ** practically it's == sizeof(void *)). We fall back to an int if this type ** isn't defined. */ #ifndef HAVE_INTPTR_T typedef int intptr_t; #endif #ifndef HAVE_UINTPTR_T typedef unsigned int uintptr_t; #endif #endif |
Added src/config.h.
> > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* ** 2008 March 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Default configuration header in case the 'configure' script is not used ** ** @(#) $Id: config.h,v 1.1 2008/03/06 07:36:18 mlcreech Exp $ */ #ifndef _CONFIG_H_ #define _CONFIG_H_ /* We do nothing here, since no assumptions are made by default */ #endif |
Added src/config.h.in.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | /* ** 2008 March 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Configuration header template to be filled in by 'configure' script ** ** @(#) $Id: config.h.in,v 1.1 2008/03/06 07:36:18 mlcreech Exp $ */ #ifndef _CONFIG_H_ #define _CONFIG_H_ /* Define as 1 if you have the int8_t type */ #undef HAVE_INT8_T /* Define as 1 if you have the int16_t type */ #undef HAVE_INT16_T /* Define as 1 if you have the int32_t type */ #undef HAVE_INT32_T /* Define as 1 if you have the int64_t type */ #undef HAVE_INT64_T /* Define as 1 if you have the intptr_t type */ #undef HAVE_INTPTR_T /* Define as 1 if you have the uint8_t type */ #undef HAVE_UINT8_T /* Define as 1 if you have the uint16_t type */ #undef HAVE_UINT16_T /* Define as 1 if you have the uint32_t type */ #undef HAVE_UINT32_T /* Define as 1 if you have the uint64_t type */ #undef HAVE_UINT64_T /* Define as 1 if you have the uintptr_t type */ #undef HAVE_UINTPTR_T /* Define as 1 if you have the inttypes.h header */ #undef HAVE_INTTYPES_H #endif |