CppTest home page CppTest project page

Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

missing.h

00001 // ---
00002 //
00003 // $Id: missing.h,v 1.4 2008/07/15 20:33:31 hartwork Exp $
00004 //
00005 // CppTest - A C++ Unit Testing Framework
00006 // Copyright (c) 2003 Niklas Lundell
00007 //
00008 // ---
00009 //
00010 // This library is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU Lesser General Public
00012 // License as published by the Free Software Foundation; either
00013 // version 2 of the License, or (at your option) any later version.
00014 //
00015 // This library is distributed in the hope that it will be useful,
00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the
00022 // Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023 // Boston, MA 02111-1307, USA.
00024 //
00025 // ---
00026 
00027 #ifndef CPPTEST_MISSING_H
00028 #define CPPTEST_MISSING_H
00029 
00030 #if (defined(__WIN32__) || defined(WIN32))
00031 # include "winconfig.h"
00032 #else
00033 # include "config.h"
00034 #endif 
00035 
00036 namespace Test
00037 {
00038 #ifndef HAVE_GETTIMEOFDAY
00039 
00040     struct timeval
00041     {
00042         long tv_sec;
00043         long tv_usec;
00044     };
00045         
00046     extern int gettimeofday(timeval* tv, void*);
00047         
00048 #endif // #ifndef HAVE_GETTIMEOFDAY
00049         
00050 #ifndef HAVE_ROUND
00051     extern double round(double d);
00052 #endif  
00053     
00054 } // namespace Test
00055 
00056 #endif // #ifndef CPPTEST_MISSING_H

Supported by:

SourceForge Logo