regex is currently using SIZE_MAX. However, first of all this is relying on stdint.h being included implicitly (via other headers) because that's where SIZE_MAX is defined. Second, regex cannot rely on C99 headers. This patch fixes this problem by providing a default definition of this macro. Paolo