// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#ifndef _WX_MSW_TLS_H_
-#define _WX_MSW_TLS_H_
+#ifndef _WX_OS2_TLS_H_
+#define _WX_OS2_TLS_H_
#include "wx/os2/private.h"
wxTlsKey()
{
APIRET rc = ::DosAllocThreadLocalMemory(1, &m_slot);
- if (rc != NO_ERROR)
- m_slot = NULL;
+ if (rc != NO_ERROR)
+ m_slot = NULL;
}
// return true if the key was successfully allocated
bool Set(void *value)
{
m_slot = (ULONG*)value;
- return true;
+ return true;
}
// free the key
private:
ULONG* m_slot;
- DECLARE_NO_COPY_CLASS(wxTlsKey)
+ wxDECLARE_NO_COPY_CLASS(wxTlsKey);
};
-#endif // _WX_MSW_TLS_H_
+#endif // _WX_OS2_TLS_H_