That's the better way of handling it. Thanks.
Sorry for the late response. I went a bit further than you suggested and replaced all min() and max() macros with more appropriate std::min() and std::max() functions. See https://sourceforge.net/p/squirrelsh/git/ci/13280cdf34d96216b4d10b9ea7656a42a967fc2b/ for details.
Updated to Squirrel 2.1
Better OS detection, nut just "win32" and "linux". Added original user manual.
Initial Subversion release
Added adler32(), crc32(), md5(), exit() functions and interactive mode
Fixed possible x86 CPU detection problems
Prepared for version 1.1.2007 release
Fixed readdir() bug introduced by previous changes
Made 'text' argument in fprintl() function optional
Updated PCRE to version 7.4; updated copyright date in COPYING-squirrel; added the latest changes to HISTORY file
Added NSIS project file used to create the installer
Fixed some bugs and added some features
Fixed run() function with null passed in 'redirIn' parameter and updated copyright dates
Fixed MIME configuration script
Added support of dynamic (DLL) version of Visual C++ run-time library
Fixed some errors related to pkg-config
Improved libsquirrel detection
Fixed compilation error occured when one library (PCRE or Squirrel) was taken from the system and another one -- from the local copy; [hopefully] fixed Squirrel library selection (system/local)
Moved to Visual Studio .NET 2005
Added filetime(), strtime(), utctolocal(), localtoutc() and mktime() functions
Added functions for working with regular expressions
Updated archiving script
Fixed some files' permissions
Fixed errors in documentation
Updated PCRE to version 7.6; updated Squirrel to version 2.2; made constants read-only; changed setenv() function so it doesn't modify variables permanently anymore; made source code a bit cleaner and better formatted
Updated PCRE to version 7.7 and Squirrel to 2.2.1; moved squirrel.h into Squirrel source directory
Updated CPU and platform detection (shell/common.h)
Fixed parsing of floating point numbers with integer part equal to zero
Added PCRE_VERSION constant, replaced strcpy with strncpy and fixed a typo in configuration script
configure-mime script is now created with correct permissions
Prepared files for a new release
Updated the configuration script to support more compilation options, including "-flto" from GCC 4.5
Fixed broken installation procedure; static libraries are now processed with ranlib when possible
Updated PCRE to version 7.8 and Squirrel to 2.2.2
Added manifest embedding to Visual Studio 2008 builds to be more UAC-friendly
Added input/output/error streams redirection for child processes and 64-bit Linux support
Added manpage
Added Ruby examples and cleaned up existing ones
Updated Squirrel to 2.1.2; improved handling of octal numbers
Switched to "generic" CPU type for x86 and x86_64 architectures and improved makefiles a bit
Fixed the '--with-libraries' configuration option (bug #2985071)
Updated Squirrel to version 2.1.1 and added ability to exit the script with 'return x;' operator.
Added function parameters validation and changed SQUIRREL_VERSION to "2.1.3"
Fixed substr() function and added one example
Preparing to release version 1.2
Fixed some typos and run() function broken in one of recent commits; changed archiving script a bit
Updated installation procedure to refect recent changes
Some minor improvements
Converted the documentation to LaTeX format and finally removed functions marked as deprecated in previous versions
Marked the current state as version 1.2.5
Added icon and changed compilation options to balance of code speed and size
Added MIME information and support of octal integers
Added copying of file timestamp and permissions
Added recursive directory removing and fixed rmdir() when path is without trailing delimiter
Minor fixes and improvements
A bit better configuration script
Updated .spec file
Minor updates
Updated Squirrel to version 2.2.4
Added MSVC10 .filters files
Updated PCRE to version 8.10
Added support of specifying compilation options by setting CC, CFLAGS, CXX, CXXFLAGS and LFLAGS environment variabled and changed default values
Changed run-time library to static to avoid problems with manifest and DLL-dependency and made some other minor changes
Added MSVS .NET 2003 solution and project files for those people who doesn't have MSVS .NET 2005
Prepared for version 1.1 release
Renamed *nix makefiles
Minor improvements
Removed 'bin' and 'lib' directories as they are created automatically when needed. Added PCRE sources (for version 7.1) and EXPERIMENTAL ./configure stuff.
tanh() function is now available on all platforms. Enabled exceptions when compiling with nmake.
Fixed some problems when compiling with MinGW
And minor fixes... again
Prepared for version 1.1.2 release
Fixed CPU architecture detection for DEC Alpha processors
Changed license to GPLv3
Corrected timestamp in debian/changelog.in
Added support for Mac OS X (CPU architecture must be specified explicitly for 64-bit builds)
Made example scripts executable
Updated Squirrel to version 2.2.3 and moved to Visual Studio 2008
Updated PCRE to version 8.01
Made it compilable by Visual C++ 2010 toolchain (hopefully changes didn't break support of previous MSVC versions)
Removed the "-Os" compiler option in an attempt to fix #3104112; removed the "-ffast-math" compiler option and added "-pipe" one
Fixed errors introduced by recent changes
Added printl() function and "-s" command line option. "-d" is now deprecated. Made other minor changes.
Added support for compilation on Windows x64.
Updated archiving script to respect all recent changes
Prepared for release of version 1.0
Removed redundant entry from resource.h
Added more platforms, CPU architecture detection, ability to compile for non-x86/x64 systems and RPM .spec file
Fixed archive.nut script
Upgraded to Kubuntu Feisty
Increased version number, updated documentation and copyright dates
Added support of uncompiled regular expressions to regmatch() function
Updated the configuration script to support pkg-config and system-wide Squirrel library (feature request #2985125); removed redundant information from copyright names
Fixed stupid mistake for Linux makefiles
A bit of fixes and changes
Makefiles for NMAKE will build PCRE as static library
Some fixes and improvements
Added MinGW makefiles and removed Unix ones (now only ./configure stuff)
Added more descriptive parameter values for scan() and fscan() functions; marked some functions and values as deprecated in the documentation; made some other minor changes and prepared for version 1.2.1 release