From 2d21514ac0b383137b2de5b14c98f7584134d142 Mon Sep 17 00:00:00 2001 From: cdkersey Date: Wed, 30 Sep 2015 12:47:15 -0600 Subject: [PATCH] Easy detection by build system. --- src/util.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index 8cf0df97..64aad045 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -9,6 +9,11 @@ using namespace Harp; using namespace std; +// Make it easy for autotools-based build systems to detect this library. +extern "C" { + int harplib_present = 1; +}; + void Harp::wordToBytes(Byte *b, Word_u w, Size wordSize) { while (wordSize--) { *(b++) = w & 0xff;