summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/InputUtil.h
blob: b8a3a4757b5a64bf93f43563ca27a784a57bf7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_UTIL_INPUT_UTIL_H
#define ICE_UTIL_INPUT_UTIL_H

#include <IceUtil/Config.h>
#include <string>
#include <limits.h>

namespace IceUtil
{

#if defined(_WIN32)
    typedef __int64 Int64;
#elif defined(__linux__) && defined(i386)
    typedef long long Int64;
    const Int64 INT64MIN = LONGLONG_MIN;
    const Int64 INT64MAX = LONGLONG_MAX;
#else
#   error "Unsupported operating system or platform!"
#endif

Int64 strToInt64(const char*, char**, int);
bool stringToInt64(const std::string&, Int64&, std::string::size_type&);

}

#endif