X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2Fcommon.h;h=29bbaecabf9487580925dadbf3d8ed3c36b5ad7d;hb=0fbc23b104256965cbb3678e85a0ae55a5149c58;hp=b4106f69b6c9dc9a38c4fc4926f1d5fe826e9cf9;hpb=0a7ead9db7967764f0d93d30f9a83c94cb6fc358;p=rrq%2Fmaintain_lilo.git diff --git a/src/common.h b/src/common.h index b4106f6..29bbaec 100644 --- a/src/common.h +++ b/src/common.h @@ -1,15 +1,13 @@ -#if 0 - common.h - Common data structures and functions. - -Copyright 1992-1998 Werner Almesberger. -Copyright 1999-2005 John Coffman. -All rights reserved. - -Licensed under the terms contained in the file 'COPYING' in the -source directory. - - -#endif +/* common.h - Common data structures and functions + * + * Copyright 1992-1998 Werner Almesberger + * Copyright 1999-2005 John Coffman + * Copyright 2009-2015 Joachim Wiedorn + * All rights reserved. + * + * Licensed under the terms contained in the file 'COPYING' + * in the source directory. + */ #ifndef COMMON_H #define COMMON_H @@ -21,6 +19,9 @@ source directory. #include #endif +#include +#define PTR_WIDTH ((int) (sizeof(intptr_t) * 2)) + #ifndef PAGE_SIZE # define PAGE_SIZE 4096U #endif