rlm@1: #ifndef VBA_VERSION_H rlm@1: #define VBA_VERSION_H rlm@1: rlm@1: #if _MSC_VER > 1000 rlm@1: #pragma once rlm@1: #endif // _MSC_VER > 1000 rlm@1: rlm@1: #define STRINGIZE_VALUE(X) _Py_STRINGIZE2(X) rlm@1: #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X)) rlm@1: #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X rlm@1: #define _Py_STRINGIZE2(X) #X rlm@1: //re: http://72.14.203.104/search?q=cache:HG-okth5NGkJ:mail.python.org/pipermail/python-checkins/2002-November/030704.html+_msc_ver+compiler+version+string&hl=en&gl=us&ct=clnk&cd=5 rlm@1: rlm@1: #if defined(_MSC_VER) rlm@1: # define VBA_COMPILER "" rlm@1: # define VBA_COMPILER_DETAIL " msvc " _Py_STRINGIZE(_MSC_VER) rlm@1: #else rlm@1: // TODO: make for others compilers rlm@1: # define VBA_COMPILER "" rlm@1: # define VBA_COMPILER_DETAIL "" rlm@1: #endif rlm@1: rlm@1: #define VBA_NAME "VBA-RR" rlm@1: #define VBA_RR_MAJOR_VERSION_NO 23 rlm@1: #define VBA_RR_MINOR_VERSION_NO 5 rlm@1: rlm@1: #if !defined(_DEBUG) && (defined(WIN32) || defined(RC_INVOKED)) rlm@1: # include "../win32/userconfig/svnrev.h" rlm@1: #endif rlm@1: # rlm@1: #ifndef SVN_REV rlm@1: # define SVN_REV 0 rlm@1: #endif rlm@1: rlm@1: #ifndef SVN_REV_STR rlm@1: # if SVN_REV > 0 rlm@1: # define SVN_REV_STR STRINGIZE_VALUE(SVN_REV) rlm@1: # else rlm@1: # define define SVN_REV_STR "" rlm@1: # endif rlm@1: #endif rlm@1: rlm@1: #ifdef _DEBUG rlm@1: # define VBA_SUBVERSION_STRING " DEBUG" rlm@1: # define VBA_BUILDTYPE_STRING "Debug" rlm@1: #elif defined(PUBLIC_RELEASE) rlm@1: # define VBA_SUBVERSION_STRING "" rlm@1: # define VBA_BUILDTYPE_STRING "Release" rlm@1: #else // interim rlm@1: # define VBA_SUBVERSION_STRING " svn" SVN_REV_STR rlm@1: # define VBA_BUILDTYPE_STRING "Interim" rlm@1: #endif rlm@1: rlm@1: #define VBA_FEATURE_STRING "" rlm@1: rlm@1: #if VBA_RR_MINOR_VERSION_NO > 0 rlm@1: # define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO ## . ## VBA_RR_MINOR_VERSION_NO rlm@1: #else rlm@1: # define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO rlm@1: #endif rlm@1: rlm@1: #define VBA_VERSION_STRING "v" STRINGIZE_VALUE(VBA_RR_VERSION_NO) VBA_SUBVERSION_STRING VBA_FEATURE_STRING VBA_COMPILER rlm@1: #define VBA_NAME_AND_VERSION VBA_NAME " " VBA_VERSION_STRING rlm@1: #define VBA_RR_SITE "http://code.google.com/p/vba-rerecording/" rlm@1: rlm@1: #endif // !VBA_VERSION_H