Blob Blame History Raw
#include <stdio.h>
#include <string.h>
#include "firm_version.h"

#ifndef FIRM_THREAD
#define FIRM_THREAD
#endif

static FIRM_THREAD char firm_revision_buffer[64] = {0};

static inline char * firm_revision()
{
	if (strcmp(FIRM_GIT_VERSION,"unknown"))
		sprintf(firm_revision_buffer,"%s-dirty",
			FIRM_GIT_VERSION);

	return firm_revision_buffer;
}

#define libfirm_VERSION_REVISION firm_revision()