From: Andreas Schösser Date: Tue, 14 Aug 2007 10:09:18 +0000 (+0000) Subject: Added libfirm version macros again. They are only set if they weren't set in the... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=23e58027c230fed148f7acc07a890b5a54e6e8e8;p=libfirm Added libfirm version macros again. They are only set if they weren't set in the environment/configure script [r15532] --- diff --git a/include/libfirm/firm.h b/include/libfirm/firm.h index 1ae2fd7f7..9c1b829f6 100644 --- a/include/libfirm/firm.h +++ b/include/libfirm/firm.h @@ -187,6 +187,20 @@ struct _firm_parameter_t { typedef struct _firm_parameter_t firm_parameter_t; +/* Set a version number if it has not been set in environment */ +#ifndef libfirm_VERSION_MAJOR +#define libfirm_VERSION_MAJOR 1 +#endif + +#ifndef libfirm_VERSION_MINOR +#define libfirm_VERSION_MINOR 4 +#endif + +#ifndef libfirm_VERSION_MICRO +#define libfirm_VERSION_MICRO 0 +#endif + + /** * The Firm version number. */