Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for building with Visual Studio 2015 #69

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions include/plist/Date.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@

#include <plist/Node.h>
#include <ctime>
#ifdef _MSC_VER
#include <time.h>
struct timeval_t {
long tv_sec; /* seconds */
long tv_usec; /* and microseconds */
};

typedef timeval_t timeval;
#else
#include <sys/time.h>
#endif

namespace PList
{
Expand Down
4 changes: 4 additions & 0 deletions include/plist/Dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ public :
iterator Find(const std::string& key);
iterator Set(const std::string& key, const Node* node);
iterator Set(const std::string& key, const Node& node);
#ifdef _MSC_VER
PLIST_WARN_DEPRECATED("use Set() instead") iterator Insert(const std::string& key, Node* node);
#else
iterator Insert(const std::string& key, Node* node) PLIST_WARN_DEPRECATED("use Set() instead");
#endif
void Remove(Node* node);
void Remove(const std::string& key);
std::string GetNodeKey(Node* key);
Expand Down
Loading