mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
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:
parent
2bbda1444d
commit
5cc370aa36
@ -772,7 +772,7 @@ typedef enum {
|
|||||||
* Macro providing the virMemoryParameter value that indicates "unlimited"
|
* 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:
|
* VIR_DOMAIN_MEMORY_HARD_LIMIT:
|
||||||
|
Loading…
Reference in New Issue
Block a user