X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbc_types.h;h=a27c3270dfee06b1f0f03341a6ae50ad320caf44;hb=626b80d3bc5887e032753eac3e4b98fa0f15210f;hp=e0916b2ecec811fdcafe61cfc24e0289a7f91775;hpb=2623d16dc34cd3c3fab846c498a4d55e7a3e6110;p=bacula%2Fbacula diff --git a/bacula/src/bc_types.h b/bacula/src/bc_types.h index e0916b2ece..a27c3270df 100644 --- a/bacula/src/bc_types.h +++ b/bacula/src/bc_types.h @@ -8,7 +8,6 @@ int8_t, int16_t, int32_t, int64_t uint8_t, uint16_t, uint32_t, uint64_t - float32_t, float64_t Also, we define types such as file address lengths. @@ -41,11 +40,16 @@ typedef char POOLMEM; #define mp_chr(x) x -#ifdef xxxxx +#ifdef xxxxx #define mp_chr(x) ((char*)(x)) -struct POOLMEM { }; +class POOLMEM { +public: + POOLMEM(); + operator char * const() { return this; } +}; #endif + /* Types */ /* If sys/types.h does not supply intXX_t, supply them ourselves */ @@ -177,7 +181,7 @@ typedef float float32_t; #define uintmax_t u_intmax_t /* Bacula time -- Unix time with microseconds */ -#define btime_t uint64_t +#define btime_t int64_t /* Unix time (time_t) widened to 64 bits */ #define utime_t int64_t