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

Fix compilation errors and warnings on Windows #516

Merged
merged 5 commits into from
Oct 11, 2015
Merged

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented Oct 9, 2015

This PR:

  • removes macros for some c99 library functions in odeconfig.h
    • The macros was required since old Visual Studio does not support those functions; they have similar implementation in Visual Studio but they are not in std namespace and have slightly different names
    • Visual Studio 2013 and after support those functions and now these macros cause compilation errors because of the namespace issue. For example, std::nextafter() will be modified by the macro to std::_nextafter() but _nextafter(~) is not in std namespace.
  • removes use of deprecated function
  • removes duplicated header inclusion

Note that AppVeyor CI build test wouldn't pass since #488 has not addressed yet.

- The macros was required since old Visual Studio does not support those functions; they have similar implementation in Visual Studio but they are not in std namespace and have slightly different names
- Visual Studio 2013 and after support those functions and now these macros cause compilation errors because of the namespace issue. For example, std::nextafter(~) will be modified by the macro to std::_nextafter(~) but _nextafter(~) is not in std namespace.
@jslee02 jslee02 added this to the DART 5.1.0 milestone Oct 9, 2015
jslee02 added a commit that referenced this pull request Oct 11, 2015
Fix compilation errors and warnings on Windows
@jslee02 jslee02 merged commit eca6c2a into master Oct 11, 2015
@jslee02 jslee02 deleted the windows_build branch October 18, 2015 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant