1 /* -*- c -*- 2 * File: tmplpro_version.c 3 * Author: Igor Vlasenko <vlasenko@imath.kiev.ua> 4 * Created: Mon Jul 13 21:24:55 2009 5 */ 6 7 #ifdef HAVE_CONFIG_H 8 #include "config.h" 9 #endif 10 11 #ifndef PACKAGE_VERSION 12 #ifdef VERSION 13 #define PACKAGE_VERSION VERSION 14 #else 15 #define PACKAGE_VERSION "0.0(not defined)" 16 #endif 17 #endif 18 19 /************************************************* 20 * Return version string * 21 *************************************************/ 22 23 /* These macros are the standard way of turning unquoted text into C strings. 24 They allow macros like PCRE_MAJOR to be defined without quotes, which is 25 convenient for user programs that want to test its value. */ 26 27 #define STRING(a) # a 28 #define XSTRING(s) STRING(s) 29 tmplpro_version(void)30const char* tmplpro_version(void) { 31 //return "" XSTRING(PACKAGE_VERSION) ; 32 return "" PACKAGE_VERSION ; 33 } 34 35 /* 36 * Local Variables: 37 * mode: c 38 * End: 39 */ 40