From 0920922a32aa6023234da4233e684133a4fc0121 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Mon, 17 Sep 2018 03:39:40 +0000 Subject: [PATCH] Tweaked qrcodegen.c to not be compilable in C++ mode (undoing commit 88cc1c05fd7e). --- c/qrcodegen.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/c/qrcodegen.c b/c/qrcodegen.c index 59ba12a..32c631e 100644 --- a/c/qrcodegen.c +++ b/c/qrcodegen.c @@ -30,12 +30,7 @@ #ifndef QRCODEGEN_TEST #define testable static // Keep functions private #else - // Expose private functions - #ifndef __cplusplus - #define testable - #else // Because in C++, const variables are treated as implicitly 'static' - #define testable extern - #endif + #define testable // Expose private functions #endif