Skip to content

Commit

Permalink
Merge pull request #978 from G10h4ck/cxx11_comp
Browse files Browse the repository at this point in the history
Introduce C++11 compatibility macro for gcc < 4.6
  • Loading branch information
csoler committed Jul 31, 2017
2 parents a041584 + 541b1ea commit 7d5f601
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libretroshare/src/util/cxx11retrocompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
*/

#ifdef __GNUC__
# if __GNUC__*100 + __GNUC_MINOR__ < 40700
# define GCC_VERSION (__GNUC__*10000+__GNUC_MINOR__*100+__GNUC_PATCHLEVEL__)
# if GCC_VERSION < 40700
# define override
# define final
# endif //GCC version
# endif // GCC version < 40700
# if GCC_VERSION < 40600
# define nullptr NULL
# endif // GCC_VERSION < 40600
#endif //defined GNUC

0 comments on commit 7d5f601

Please sign in to comment.