diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-06-16 11:59:34 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-06-16 11:59:34 +0000 |
| commit | aaa2ecaa6fd16fa6a03e1c9051b0a481e8d4f20a (patch) | |
| tree | 230b5f6a71d1e4d09c22d70ae6b314cd8a5723cc /src/Platform.h | |
| parent | 06644332c2cc5b229ef41857ceed73f7caf2775f (diff) | |
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
only the
follow sources are applied.
* src/Platform.h: I removed HAVE_WINSOCK2_H directive from
Platform.h.
* src/Platform.cc: Moved common setup/teardown code to Platform
class.
I moved #endif // HAVE_WINSOCK2_H to the front of #include
"DlAbortEx.h"
I included locale.h from Platform.cc.
* src/main.cc: Moved common setup/teardown code to Platform
class.
* test/AllTest.cc: Use Platform class.
Set locale to C in AllTest.cc to prevent the messages to be
localized.
Diffstat (limited to 'src/Platform.h')
| -rw-r--r-- | src/Platform.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Platform.h b/src/Platform.h index 5d55061a..0b4146e9 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -39,16 +39,21 @@ namespace aria2 { -#ifdef HAVE_WINSOCK2_H - class Platform { +private: + static bool _initialized; + public: Platform(); ~Platform(); -}; -#endif // HAVE_WINSOCK2_H + static bool setUp(); + + static bool tearDown(); + + static bool isInitialized(); +}; } // namespace aria2 |
