2015-01-13 12:25:42 -07:00
|
|
|
#ifndef GB_INCLUDE_H
|
|
|
|
#define GB_INCLUDE_H
|
2013-08-02 13:12:24 -07:00
|
|
|
|
2016-09-22 14:12:15 +02:00
|
|
|
//The function below are legacy. Don't use them in new code
|
2015-12-21 13:19:57 +01:00
|
|
|
#define gbmemcpy(xx,yy,zz) memmove(xx,yy,zz)
|
2015-01-14 14:12:55 -08:00
|
|
|
|
2014-11-10 14:45:11 -08:00
|
|
|
#include <inttypes.h>
|
2016-09-08 13:17:44 +02:00
|
|
|
#include <bits/wordsize.h>
|
2014-11-25 15:47:21 -08:00
|
|
|
|
2014-11-12 11:38:37 -08:00
|
|
|
#if __WORDSIZE == 64
|
2014-11-25 15:47:21 -08:00
|
|
|
#define PTRTYPE uint64_t
|
2014-11-12 11:38:37 -08:00
|
|
|
#define SPTRTYPE int64_t
|
2014-11-25 15:47:21 -08:00
|
|
|
#define PTRFMT "lx"
|
2014-11-12 11:38:37 -08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if __WORDSIZE == 32
|
2014-11-26 18:27:47 -07:00
|
|
|
#define PTRTYPE unsigned long //uint32_t
|
2014-11-12 11:38:37 -08:00
|
|
|
#define SPTRTYPE int32_t
|
2014-11-25 15:47:21 -08:00
|
|
|
#define PTRFMT "lx"
|
2014-11-12 11:38:37 -08:00
|
|
|
#endif
|
2014-11-10 14:45:11 -08:00
|
|
|
|
2013-08-02 13:12:24 -07:00
|
|
|
#include <ctype.h> // Log.h
|
|
|
|
#include <errno.h> // Errno.h
|
|
|
|
#include <stdarg.h> // Log.h
|
|
|
|
#include <stdint.h> // commonly included in include files
|
|
|
|
#include <stdio.h> // commonly included in include files
|
|
|
|
#include <stdlib.h> // commonly included in include files
|
|
|
|
#include <string.h> // commonly included in include files
|
|
|
|
#include <unistd.h> // commonly included in include files
|
|
|
|
|
|
|
|
#include "types.h" // commonly included in includ files
|
|
|
|
#include "fctypes.h" // commonly included in includ files
|
|
|
|
#include "hash.h" // commonly included in includ files
|
|
|
|
|
|
|
|
#include "Errno.h" // commonly included in include files
|
|
|
|
#include "Log.h" // commonly included in include files
|
|
|
|
|
2016-03-08 22:14:30 +01:00
|
|
|
#endif // GB_INCLUDE_H
|