Blame project/revision.h

7fc87c
#include <string.h>
7fc87c
#include "firm_version.h"
7fc87c
7fc87c
#ifndef FIRM_THREAD
7fc87c
#define FIRM_THREAD
7fc87c
#endif
7fc87c
7fc87c
static FIRM_THREAD char firm_revision_buffer[64] = {0};
7fc87c
7fc87c
static inline char * firm_revision()
7fc87c
{
7fc87c
	if (strcmp(FIRM_GIT_VERSION,"unknown"))
7fc87c
		sprintf(firm_revision_buffer,"%s-dirty",
7fc87c
			FIRM_GIT_VERSION);
7fc87c
7fc87c
	return firm_revision_buffer;
7fc87c
}
7fc87c
7fc87c
#define libfirm_VERSION_REVISION firm_revision()