From 0c49f7df304bf738a8a5f9f36c171ffaba42d91b Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Tue, 15 Aug 2006 05:45:22 +0000 Subject: [PATCH] explicit note (zzip/types.h) --- zzip/types.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/zzip/types.h b/zzip/types.h index c20f128..6f9c6e6 100644 --- a/zzip/types.h +++ b/zzip/types.h @@ -12,10 +12,16 @@ * or alternatively the restrictions * of the Mozilla Public License 1.1 * - * if you see "unknown symbol" errors, check first that `-I ..` is part of - * your compiler options - a special hint to VC/IDE users who tend to make up - * their own workspace files. All includes look like #include , so - * you need to add an include path to the dir containing (!!) the ./zzip/ dir + * This file is usually the first to define some real symbols. If you do + * see some errors here then it is most likely the includepath is wrong + * or some includeheader is missing / unreadable on your system. + * (a) we include local headers with a "zzip/" prefix just to be sure + * to not actually get the wrong one. Consider to add `-I..` somewhere + * and especially VC/IDE users (who make up their own workspace files) + * should include the root source directory of this project. + * (b) size_t and ssize_t are sometimes found be `configure` but they are + * not in the usual places (ANSI C = stddef.h; UNIX = sys/types.h), so + * be sure to look for them and add the respective header as an #include. */ #ifndef _ZZIP_TYPES_H_ @@ -33,8 +39,8 @@ typedef unsigned char zzip_byte_t; // especially zlib decoding data typedef _zzip_off64_t zzip_off64_t; typedef _zzip_off_t zzip_off_t; -typedef _zzip_size_t zzip_size_t; -typedef _zzip_ssize_t zzip_ssize_t; +typedef _zzip_size_t zzip_size_t; /* Some error here? */ +typedef _zzip_ssize_t zzip_ssize_t; /* See notes above! */ /* in */ typedef struct zzip_disk64_trailer ZZIP_DISK64_TRAILER; -- 2.40.0