From 509d136e9adb60c56369565b9545e613cac3678e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 12 Nov 2009 17:05:30 +0000 Subject: I've started my campaign to clean up all of the header files in libbu++ as far as includes go. This required a little bit of reworking as far as archive goes, but I've been planning on changing it aronud for a bit anyway. The final result here is that you may need to add some more includes in your own code, libbu++ doesn't include as many random things you didn't ask for anymore, most of these seem to be bu/hash.h, unistd.h, and time.h. Also, any Archive functions and operators should use ArchiveBase when they can instead of Archive, archivebase.h is a much lighterweight include that will be used everywhere in core that it can be, there are a few classes that actually want a specific archiver to be used, they will use it (such as the nids storage class). So far, except for adding header files, nothing has changed in functionality, and no other code changes should be required, although the above mentioned archive changeover is reccomended. --- src/util.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index c284880..6f2f930 100644 --- a/src/util.h +++ b/src/util.h @@ -9,18 +9,20 @@ #define BU_UTIL_H #ifndef NULL -#define NULL 0 +# define NULL 0 #endif /* I borrowed this from someone who borrowed it from glib who borrowed it * from... */ #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) -#define DEPRECATED __attribute__((__deprecated__)) +# define DEPRECATED __attribute__((__deprecated__)) #else -#define DEPRECATED +# define DEPRECATED #endif /* __GNUC__ */ +#include + namespace Bu { /** @@ -173,6 +175,8 @@ namespace Bu * leap years into account. */ int getDaysInMonth( int iMonth, int iYear ); + + void memcpy( void *pDest, const void *pSrc, size_t iBytes ); }; #endif -- cgit v1.2.3