Don't use INT64_MAX in libvirt.h because it requires stdint.h

VIR_DOMAIN_MEMORY_PARAM_UNLIMITED uses INT64_MAX but stdint.h
was not and should not be included. Therefore, libvirt.h was
not self-contained.

Instead of including stdint.h specify the value directly.
This commit is contained in:
Matthias Bolte 2011-03-09 10:42:49 +01:00
parent 2bbda1444d
commit 5cc370aa36

View File

@ -772,7 +772,7 @@ typedef enum {
* Macro providing the virMemoryParameter value that indicates "unlimited"
*/
#define VIR_DOMAIN_MEMORY_PARAM_UNLIMITED (INT64_MAX >> 10)
#define VIR_DOMAIN_MEMORY_PARAM_UNLIMITED 9007199254740991LL /* = INT64_MAX >> 10 */
/**
* VIR_DOMAIN_MEMORY_HARD_LIMIT: