]> xenbits.xensource.com Git - libvirt.git/commitdiff
Don't use INT64_MAX in libvirt.h because it requires stdint.h
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 9 Mar 2011 09:42:49 +0000 (10:42 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 11 Mar 2011 21:08:24 +0000 (22:08 +0100)
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.

include/libvirt/libvirt.h.in

index fbbf2ead66de92334a2c969c6305c60ec7b224d8..eaeccd6a82d8e09875330736d3bb7b0d0e1bf45a 100644 (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: