Easy detection by build system.

This commit is contained in:
cdkersey 2015-09-30 12:47:15 -06:00
parent 1eb574650f
commit 2d21514ac0

View file

@ -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;