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