CodeLite/MSWPrivate.h
raw| 1 | #ifndef MSWPRIVATE_H |
| 2 | #define MSWPRIVATE_H |
| 3 | |
| 4 | #define YY_NEVER_INTERACTIVE 1 |
| 5 | #define CURRENT_GCC_VERSION ((__GNUC__*1000)+(__GNUC_MINOR__*100)) |
| 6 | #define GCC_VERSION(major, minor) ((major*1000)+(minor*100)) |
| 7 | |
| 8 | #if CURRENT_GCC_VERSION < GCC_VERSION(4,9) |
| 9 | #include <sstream> |
| 10 | namespace std { |
| 11 | template<typename T> |
| 12 | std::string to_string(T x) { |
| 13 | std::stringstream ss; |
| 14 | ss << x; |
| 15 | return ss.str(); |
| 16 | } |
| 17 | } |
| 18 | #endif |
| 19 | |
| 20 | #endif // MSWPRIVATE_H |