mirror of
https://github.com/encounter/aurora.git
synced 2025-07-05 04:35:55 +00:00
Add EMSCRIPTEN checks
This commit is contained in:
parent
1ab3415c9d
commit
0a4784596c
@ -23,7 +23,7 @@ struct AsyncIOInner;
|
||||
#endif
|
||||
|
||||
class AsyncIO {
|
||||
#ifdef __SWITCH__
|
||||
#if defined(__SWITCH__) || defined(EMSCRIPTEN)
|
||||
FILE* m_fd;
|
||||
#elif !defined(_WIN32)
|
||||
int m_fd = -1;
|
||||
@ -48,7 +48,7 @@ public:
|
||||
ECardResult pollStatus(size_t qIdx, SizeReturn* szRet = nullptr) const;
|
||||
ECardResult pollStatus() const;
|
||||
void waitForCompletion() const;
|
||||
#ifdef __SWITCH__
|
||||
#if defined(__SWITCH__) || defined(EMSCRIPTEN)
|
||||
explicit operator bool() const { return m_fd != nullptr; }
|
||||
#elif !defined(_WIN32)
|
||||
explicit operator bool() const { return m_fd != -1; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user