~ubuntu-branches/ubuntu/wily/libspiff/wily

« back to all changes in this revision

Viewing changes to test/CppTest/missing.h

  • Committer: Bazaar Package Importer
  • Author(s): Adeodato Simó
  • Date: 2007-10-11 14:44:38 UTC
  • Revision ID: james.westby@ubuntu.com-20071011144438-zpl4gtvl3bf2ocnx
Tags: upstream-0.8.2
Import upstream version 0.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ---
 
2
//
 
3
// $Id: missing.h,v 1.2 2004/02/04 21:08:23 nilu Exp $
 
4
//
 
5
// CppTest - A C++ Unit Testing Framework
 
6
// Copyright (c) 2003 Niklas Lundell
 
7
//
 
8
// ---
 
9
//
 
10
// This library is free software; you can redistribute it and/or
 
11
// modify it under the terms of the GNU Lesser General Public
 
12
// License as published by the Free Software Foundation; either
 
13
// version 2 of the License, or (at your option) any later version.
 
14
//
 
15
// This library is distributed in the hope that it will be useful,
 
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
// Lesser General Public License for more details.
 
19
//
 
20
// You should have received a copy of the GNU Lesser General Public
 
21
// License along with this library; if not, write to the
 
22
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
23
// Boston, MA 02111-1307, USA.
 
24
//
 
25
// ---
 
26
 
 
27
#ifndef CPPTEST_MISSING_H
 
28
#define CPPTEST_MISSING_H
 
29
 
 
30
#if (defined(__WIN32__) || defined(WIN32))
 
31
# include "winconfig.h"
 
32
#else
 
33
# include "config.h"
 
34
#endif
 
35
 
 
36
namespace Test
 
37
{
 
38
#ifndef HAVE_GETTIMEOFDAY
 
39
 
 
40
        struct timeval
 
41
        {
 
42
                long tv_sec;
 
43
                long tv_usec;
 
44
        };
 
45
                
 
46
        extern int gettimeofday(timeval* tv, void*);
 
47
                
 
48
#endif // #ifndef HAVE_GETTIMEOFDAY
 
49
                
 
50
#ifndef HAVE_ROUND
 
51
        extern double round(double d);
 
52
#endif  
 
53
        
 
54
} // namespace Test
 
55
 
 
56
#endif // #ifndef CPPTEST_MISSING_H