Skip to content

Commit

Permalink
Fixing win32 package.
Browse files Browse the repository at this point in the history
  • Loading branch information
PerryWerneck committed Jun 2, 2023
1 parent c81b87c commit 90767d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/module/tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <py3270.h>
#include <lib3270.h>
#include <lib3270/ipc.h>
#include <string>

/*--[ Implement ]------------------------------------------------------------------------------------*/
Expand All @@ -39,12 +40,19 @@
if(TN3270::getInstallLocation().empty()) {
return "Can't determine location of pw3270 runtime, is it installed?";
}
#endif // _WIN32

if(strcmp(lib3270_get_revision(),"20220101") < 0) {
return "lib" LIB3270_STRINGIZE_VALUE_OF(LIB3270_NAME) " is too old";
}

#else

if(strcasecmp(lib3270_get_revision(),"20220101") < 0) {
return "lib" LIB3270_STRINGIZE_VALUE_OF(LIB3270_NAME) " is too old";
}

#endif // _WIN32

return NULL;

}
Expand Down

0 comments on commit 90767d6

Please sign in to comment.