X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cfg%2Fcompiler.h;h=5a73038a65a75e45acf695b3d1072f879c9152dc;hb=3110ae0831fa4ba081c9206663390e21c7a4f78a;hp=3e2b1ab313b5cc275afd5ed5dd4e33898447bee7;hpb=522a88e7e200f90c9819d011bb790d4cb99367a7;p=bertos.git diff --git a/cfg/compiler.h b/cfg/compiler.h old mode 100755 new mode 100644 index 3e2b1ab3..5a73038a --- a/cfg/compiler.h +++ b/cfg/compiler.h @@ -1,9 +1,34 @@ /** * \file * * * \brief Additional support macros for compiler independance @@ -14,6 +39,9 @@ /*#* *#* $Log$ + *#* Revision 1.24 2007/01/09 08:58:14 bernie + *#* Avoid dependency on cfg/compiler.h + *#* *#* Revision 1.23 2006/09/13 18:28:38 bernie *#* Reformat. *#* @@ -86,7 +114,7 @@ #ifndef DEVLIB_COMPILER_H #define DEVLIB_COMPILER_H -#include +#include #if defined __GNUC__ && defined __GNUC_MINOR__ @@ -422,11 +450,16 @@ #define MTIME_INFINITE 0x7FFFL #else typedef int32_t ticks_t; /**< Type for time expressed in ticks. */ - typedef int32_t mtime_t; /**< Type for time expressed in milliseconds. */ + typedef int32_t utime_t; /**< Type for time expressed in microseconds. */ - #define SIZEOF_MTIME_T (32 / CPU_BITS_PER_CHAR) #define SIZEOF_UTIME_T (32 / CPU_BITS_PER_CHAR) - #define MTIME_INFINITE 0x7FFFFFFFL + + #ifndef DEVLIB_MTIME_DEFINED + #define DEVLIB_MTIME_DEFINED 1 /* Resolve conflict with */ + typedef int32_t mtime_t; /**< Type for time expressed in milliseconds. */ + #define SIZEOF_MTIME_T (32 / CPU_BITS_PER_CHAR) + #define MTIME_INFINITE 0x7FFFFFFFL + #endif #endif /** Bulk storage large enough for both pointers or integers. */