Correct exception namespacing for Windows header

This commit is contained in:
Danny Robson 2012-05-17 14:16:09 +10:00
parent 9b8419bd8d
commit 3b9d9cde30

View File

@ -25,7 +25,6 @@
#include <stdexcept>
namespace util {
class input_error : public std::runtime_error {
public:
@ -64,11 +63,12 @@ namespace util {
static void throw_code (void);
static void throw_code (int code);
};
}
#if defined(PLATFORM_WIN32)
#include <windows.h>
namespace util {
class win32_error : public std::runtime_error {
public:
DWORD id;
@ -79,7 +79,7 @@ namespace util {
static void try_code (void);
static void throw_code (void);
};
#endif
}
#endif
#endif