X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestInline.cxx;h=b427e37f7fc50ffc30272e94e894f89c5e0f4c22;hb=5071bc6d73c22304b8b139d040a02eb3e1f33407;hp=e7fcfeeb1513868edbcda3875a79fdb158544bbd;hpb=e62ccd7696a36805e3eee643c86e80ffc1dd802d;p=gdcm.git diff --git a/Testing/TestInline.cxx b/Testing/TestInline.cxx index e7fcfeeb..b427e37f 100755 --- a/Testing/TestInline.cxx +++ b/Testing/TestInline.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestInline.cxx,v $ Language: C++ - Date: $Date: 2007/09/28 07:35:49 $ - Version: $Revision: 1.15 $ + Date: $Date: 2008/04/10 12:15:34 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -31,11 +31,16 @@ #include "gdcmUtil.h" -#ifdef _MSC_VER +#include // atoi +#if defined(__BORLANDC__) || defined (_MSC_VER) #include + #if defined(__BORLANDC__) + #include + #endif #define GET_TIME(a) a=clock() #define HOW_LONG(b,a) \ - std::cout << (double) (b-a) << std::endl + std::cout << (double) (b-a) << std::endl + #else #include #define GET_TIME(a) times(&a) @@ -182,7 +187,7 @@ double passDirectDouble(double a, double b) int TestInline(int argc, char *argv[]) { -#ifdef _MSC_VER +#if defined(__BORLANDC__) || defined (_MSC_VER) clock_t tms1, tms2; #else struct tms tms1, tms2; @@ -201,6 +206,7 @@ int TestInline(int argc, char *argv[]) std::cout << "Size of long " << sizeof(long) << std::endl; std::cout << "Size of float " << sizeof(float) << std::endl; std::cout << "Size of double " << sizeof(double) << std::endl; + std::cout << "Size of bool " << sizeof(bool) << std::endl; std::cout << std::endl; std::cout << "Size of char* " << sizeof(char*) << std::endl; std::cout << "Size of short int*" << sizeof(short int*)<< std::endl;