karazeh
A cross-platform software updating library.
karazeh.hpp
Go to the documentation of this file.
1 
21 #ifndef H_KARAZEH_H
22 #define H_KARAZEH_H
23 
24 #include <string>
25 #include <cassert>
26 #include <boost/filesystem.hpp>
27 #include "karazeh/exception.hpp"
28 
29 #define KZH_DISTANCE_FROM_ROOT 1
30 
31 // Finds the current platform.
32 //
33 // Proudly stolen from Ogre3D code in OgrePlatform.h
34 #define KZH_PLATFORM_WIN32 1
35 #define KZH_PLATFORM_LINUX 2
36 #define KZH_PLATFORM_APPLE 3
37 #define KZH_PLATFORM_SYMBIAN 4
38 #define KZH_PLATFORM_IPHONE 5
39 
40 #if defined( __SYMBIAN32__ )
41 # define KZH_PLATFORM KZH_PLATFORM_SYMBIAN
42 #elif defined( __WIN32__ ) || defined( _WIN32 )
43 # define KZH_PLATFORM KZH_PLATFORM_WIN32
44 #elif defined( __APPLE_CC__)
45 # if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30000 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 30000
46 # define KZH_PLATFORM KZH_PLATFORM_IPHONE
47 # else
48 # define KZH_PLATFORM KZH_PLATFORM_APPLE
49 # endif
50 #else
51 # define KZH_PLATFORM KZH_PLATFORM_LINUX
52 #endif
53 
54 namespace kzh {
55  typedef std::string string_t;
56  typedef unsigned long uint64_t;
57  typedef boost::filesystem::path path_t;
58 }
59 
60 #endif
boost::filesystem::path path_t
Definition: karazeh.hpp:57
std::string string_t
Definition: karazeh.hpp:55
unsigned long uint64_t
Definition: karazeh.hpp:56
Definition: config.hpp:27