X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=common.hh;fp=common.h;h=66aefd90399764a0de63e796aa53da39dabdb0e0;hb=03be53bf14d0c2e1e3e19356376491945cdd78c8;hp=ec7913ea4b13853d1880611bf02e877348f476d8;hpb=bc662e293c854e1bdc9d46e9a410fe220247e6d4;p=chaz%2Frasterize diff --git a/common.h b/common.hh similarity index 96% rename from common.h rename to common.hh index ec7913e..66aefd9 100644 --- a/common.h +++ b/common.hh @@ -5,17 +5,16 @@ * mcgarvey@eng.utah.edu */ -#ifndef _COMMON_H_ -#define _COMMON_H_ +#ifndef _COMMON_HH_ +#define _COMMON_HH_ -#include -#include +#include +#include +#include +#include #include -#include -#include -#include -#include "config.h" +#include "config.hh" /* @@ -217,7 +216,7 @@ char* mem_strcat(const char* str1, const char* str2) size_t size2 = strlen(str2); char* str = (char*)mem_alloc(size1 + size2 + 1); memcpy(str + size1, str2, size2 + 1); - return memcpy(str, str1, size1); + return (char*)memcpy(str, str1, size1); } @@ -269,5 +268,5 @@ void timer_start(); long timer_stop(); -#endif // _COMMON_H_ +#endif // _COMMON_HH_