-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33198c6
commit 3533997
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,10 @@ | |
#include "fb_macros.h" | ||
#include "fb_types.h" | ||
|
||
#if (__cplusplus >= 201103L) | ||
#define CPP_11 | ||
#endif | ||
|
||
/***************************************************** | ||
* Linux platforms | ||
*****************************************************/ | ||
|
@@ -886,6 +890,9 @@ void GDS_breakpoint(int); | |
#endif | ||
|
||
// Check for "final" keyword support | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aafemt
Contributor
|
||
#ifdef CPP_11 | ||
#define FB_FINAL final | ||
#else | ||
#ifdef __GNUC__ | ||
#if ((__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || (__GNUC__ >= 5)) | ||
#define FB_FINAL __final | ||
|
@@ -895,6 +902,7 @@ void GDS_breakpoint(int); | |
#ifndef FB_FINAL | ||
#define FB_FINAL | ||
#endif | ||
#endif | ||
|
||
#define FB_UNUSED(value) do { if (value) {} } while (false) | ||
#define FB_UNUSED_VAR(value) (void) value | ||
|
Adriano, do we still try to keep support for non c++11 (may be I've missed something in discussion) ?