summaryrefslogtreecommitdiffstats
path: root/include/plist/Date.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/plist/Date.h')
-rw-r--r--include/plist/Date.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/plist/Date.h b/include/plist/Date.h
index 510a349..7026699 100644
--- a/include/plist/Date.h
+++ b/include/plist/Date.h
@@ -24,7 +24,11 @@
#include <plist/Node.h>
#include <ctime>
+#ifdef _MSC_VER
+#include <winsock2.h>
+#else
#include <sys/time.h>
+#endif
namespace PList
{
@@ -35,14 +39,14 @@ public :
Date(Node* parent = NULL);
Date(plist_t node, Node* parent = NULL);
Date(const Date& d);
- Date& operator=(Date& d);
- Date(timeval t);
+ Date& operator=(const Date& d);
+ Date(int64_t t);
virtual ~Date();
Node* Clone() const;
- void SetValue(timeval t);
- timeval GetValue() const;
+ void SetValue(int64_t t);
+ int64_t GetValue() const;
};
};