fldigi/fldigi-nullptr.patch

20 lines
391 B
Diff

diff --git a/src/logbook/table.cxx b/src/logbook/table.cxx
index f5a2b3b2..cd57733e 100644
--- a/src/logbook/table.cxx
+++ b/src/logbook/table.cxx
@@ -42,6 +42,14 @@
using namespace std;
+/*
+ * nullptr is not available in gcc < 4.6
+ * Redefine to NULL for CentOS 6 and OSX Darwin
+ */
+#ifndef nullptr
+#define nullptr NULL
+#endif
+
/*
* ======================================