include fixes
This commit is contained in:
@@ -51,7 +51,7 @@ public:
|
|||||||
#ifdef MICRO_PIP
|
#ifdef MICRO_PIP
|
||||||
PIString typeName() const final {static PIString ret(PIVariant(T()).typeName()); return ret;}
|
PIString typeName() const final {static PIString ret(PIVariant(T()).typeName()); return ret;}
|
||||||
#else
|
#else
|
||||||
PIString typeName() const final {static PIString ret(_TYPENAME_(T)); return ret;}
|
PIString typeName() const final {static PIString ret(typeid(T).name()); return ret;}
|
||||||
#endif
|
#endif
|
||||||
uint hash() const final {static uint ret = typeName().hash(); return ret;}
|
uint hash() const final {static uint ret = typeName().hash(); return ret;}
|
||||||
void newT(void *& ptr, const void * value) final {ptr = (void*)(new T(*(const T*)value));}
|
void newT(void *& ptr, const void * value) final {ptr = (void*)(new T(*(const T*)value));}
|
||||||
|
|||||||
@@ -17,13 +17,17 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "piplatform.h"
|
||||||
|
#ifdef WINDOWS
|
||||||
|
# undef _WIN32_WINNT
|
||||||
|
# define _WIN32_WINNT 0x0600
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "piconditionvar.h"
|
#include "piconditionvar.h"
|
||||||
#include "pithread.h"
|
#include "pithread.h"
|
||||||
#include "pitime.h"
|
#include "pitime.h"
|
||||||
#include "piincludes_p.h"
|
#include "piincludes_p.h"
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
# undef _WIN32_WINNT
|
|
||||||
# define _WIN32_WINNT 0x0600
|
|
||||||
# include <synchapi.h>
|
# include <synchapi.h>
|
||||||
# include <windef.h>
|
# include <windef.h>
|
||||||
# include <winbase.h>
|
# include <winbase.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user