Files
privacore-open-source-searc…/gb-include.h

39 lines
1.1 KiB
C
Raw Normal View History

#ifndef GB_INCLUDE_H
#define GB_INCLUDE_H
2013-08-02 13:12:24 -07:00
//The function below are legacy. Don't use them in new code
#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
#if __WORDSIZE == 64
2014-11-25 15:47:21 -08:00
#define PTRTYPE uint64_t
#define SPTRTYPE int64_t
2014-11-25 15:47:21 -08:00
#define PTRFMT "lx"
#endif
#if __WORDSIZE == 32
#define PTRTYPE unsigned long //uint32_t
#define SPTRTYPE int32_t
2014-11-25 15:47:21 -08:00
#define PTRFMT "lx"
#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