diff options
author | Nikolai Pretzell <np@openoffice.org> | 2002-05-15 10:24:44 +0000 |
---|---|---|
committer | Nikolai Pretzell <np@openoffice.org> | 2002-05-15 10:24:44 +0000 |
commit | 893c8de32f64cf8957a2ba8d5705f216b7d293b0 (patch) | |
tree | 5fd5fc1bbffd0c5f1396114aa81a30f0d7336e2a /cosv | |
parent | 83e726c6a5d8c15e55c991854d60fc6d64744a2f (diff) |
Missing include for size_t under some rare circumstances.
Diffstat (limited to 'cosv')
-rw-r--r-- | cosv/inc/cosv/comfunc.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cosv/inc/cosv/comfunc.hxx b/cosv/inc/cosv/comfunc.hxx index a1c05f8e7bee..e9d7cf8aca6e 100644 --- a/cosv/inc/cosv/comfunc.hxx +++ b/cosv/inc/cosv/comfunc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: comfunc.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: np $ $Date: 2002-05-14 08:08:45 $ + * last change: $Author: np $ $Date: 2002-05-15 11:24:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,8 @@ #ifndef CSV_COMFUNC_HXX #define CSV_COMFUNC_HXX +#include <stdlib.h> + namespace csv { @@ -119,7 +121,7 @@ switch_endian( NUMTYPE & o_rNumber, char * pFront = reinterpret_cast< char* >(&o_rNumber); const char * pBack = reinterpret_cast< const char* >(&i_rNumber) + sizeof(NUMTYPE); - for ( size_t p = 0; p < sizeof(NUMTYPE); --p ) + for ( size_t p = 0; p < sizeof(NUMTYPE); --p ) { *pFront++ = *(--pBack); } |