Commit b8caffc959cbe5a82f6da492e7dff42072a1c210

Authored by Perry Werneck
1 parent df44efe4
Exists in master

Atualizando API ooRexx

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
@@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
31 31
32 #define RX3270_H_INCLUDED 1 32 #define RX3270_H_INCLUDED 1
33 33
  34 + #include <config.h>
34 #include <stdint.h> 35 #include <stdint.h>
35 #include <errno.h> 36 #include <errno.h>
36 #include <stdio.h> 37 #include <stdio.h>