adds SIZE_MAX definition

This commit is contained in:
Peter Thorson
2012-02-02 07:16:02 -06:00
parent 7e213d152e
commit e43c6fa6ec

View File

@@ -33,6 +33,12 @@
#endif
#include <stdint.h>
// SIZE_MAX appears to be a compiler thing not an OS header thing.
// make sure it is defined.
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)(-1))
#endif
#include <exception>
#include <string>
#include <vector>