]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/base.h
Switch <stdint.h> test to use a test file too.
[user/henk/code/inspircd.git] / include / base.h
index 230ed1db4f81f02a35816c849aa07ac19015bd3d..0a4456f3a7fd398c2aea015b38dc88c76a5d5ded 100644 (file)
@@ -26,6 +26,7 @@
 #include <map>
 #include <deque>
 #include <string>
+#include <list>
 
 /** Dummy class to help enforce culls being parent-called up to classbase */
 class CullResult
@@ -121,7 +122,7 @@ class CoreExport usecountbase
 };
 
 template <typename T>
-class CoreExport reference
+class reference
 {
        T* value;
  public:
@@ -157,7 +158,7 @@ class CoreExport reference
                return *this;
        }
 
-       inline operator bool() const { return value; }
+       inline operator bool() const { return (value != NULL); }
        inline operator T*() const { return value; }
        inline T* operator->() const { return value; }
        inline T& operator*() const { return *value; }
@@ -165,7 +166,7 @@ class CoreExport reference
        inline bool operator>(const reference<T>& other) const { return value > other.value; }
        static inline void* operator new(size_t, void* m) { return m; }
  private:
-#ifndef WIN32
+#ifndef _WIN32
        static void* operator new(size_t);
        static void operator delete(void*);
 #endif