forked from greenheartgames/greenworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Includes.h
37 lines (29 loc) · 920 Bytes
/
Includes.h
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
37
/*
Greenworks Node-Webkit Library for Windows, Linux and Macintosh
------------------------------------------------------------------------------------------------
Includes
Provides basic / common includes (especially for implementing platform specific requirements)
Written and developed by Francesco Abbattista
Additional code and adaptions by Daniel Klug
Copyright(C) 2014 Greenheart Games(http://greenheartgames.com )
Greenworks is published under the MIT license.
See LICENSE file for details.
Also consult the licenses folder for additional libraries.
*/
#ifndef INCLUDES_H
#define INCLUDES_H
#ifdef _WIN32
#else
#include <sstream>
typedef unsigned char BYTE;
typedef unsigned char byte;
// Provide an alternative to to_string on *nix / apple systems
template <typename T>
std::string to_string(T value)
{
std::ostringstream os;
os << value;
return os.str();
}
#endif
#endif