-
Notifications
You must be signed in to change notification settings - Fork 273
VisualStudio build fixes #538
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,8 +216,15 @@ class goto_program_templatet | |
} | ||
|
||
//! Uniquely identify an invalid target or location | ||
#if (defined _MSC_VER && _MSC_VER <= 1800) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add an explanation for 1800 and the variable name? Something like "_MSC_VER is a version of the Microsoft 'cl' compiler, 1800 corresponds to the Visual Studio 2013 version" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me know whether you're happy with one that I have just pushed! |
||
// Visual Studio <= 2013 does not support constexpr, making | ||
// numeric_limits::max() unviable for a static const member | ||
static const unsigned nil_target= | ||
static_cast<unsigned>(-1); | ||
#else | ||
static const unsigned nil_target= | ||
std::numeric_limits<unsigned>::max(); | ||
#endif | ||
|
||
//! A globally unique number to identify a program location. | ||
//! It's guaranteed to be ordered in program order within | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
\*******************************************************************/ | ||
|
||
#include <algorithm> | ||
|
||
#include <util/message.h> | ||
#include <util/suffix.h> | ||
#include <util/string2int.h> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <cassert> | ||
#include <ostream> | ||
|
||
#include <string> | ||
|
||
#include "aig.h" | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"...unless we are on old MS compiler"
(?)