Commit b8caffc959cbe5a82f6da492e7dff42072a1c210
1 parent
df44efe4
Exists in
master
Atualizando API ooRexx
Showing
3 changed files
with
7 additions
and
0 deletions
Show diff stats
src/extension/rexx_methods.cc
@@ -80,7 +80,11 @@ RexxMethod1(RexxStringObject, rx3270_method_version, CSELF, sessionPtr) | @@ -80,7 +80,11 @@ RexxMethod1(RexxStringObject, rx3270_method_version, CSELF, sessionPtr) | ||
80 | if(hSession) | 80 | if(hSession) |
81 | return context->String((CSTRING) hSession->get_version().c_str()); | 81 | return context->String((CSTRING) hSession->get_version().c_str()); |
82 | 82 | ||
83 | +#ifdef PACKAGE_VERSION | ||
83 | return context->String((CSTRING) PACKAGE_VERSION); | 84 | return context->String((CSTRING) PACKAGE_VERSION); |
85 | +#else | ||
86 | + return context->String((CSTRING) STRINGIZE_VALUE_OF(BUILD_DATE)); | ||
87 | +#endif | ||
84 | } | 88 | } |
85 | 89 | ||
86 | RexxMethod1(RexxStringObject, rx3270_method_revision, CSELF, sessionPtr) | 90 | RexxMethod1(RexxStringObject, rx3270_method_revision, CSELF, sessionPtr) |
src/extension/rx3270.cc
@@ -35,8 +35,10 @@ | @@ -35,8 +35,10 @@ | ||
35 | * | 35 | * |
36 | */ | 36 | */ |
37 | 37 | ||
38 | + #include <config.h> | ||
38 | #include <rx3270.h> | 39 | #include <rx3270.h> |
39 | 40 | ||
41 | + | ||
40 | /*--[ Globals ]--------------------------------------------------------------------------------------*/ | 42 | /*--[ Globals ]--------------------------------------------------------------------------------------*/ |
41 | 43 | ||
42 | /*--[ Implement ]------------------------------------------------------------------------------------*/ | 44 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
src/include/rx3270.h