mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
vbox: Rename #include guard macro in header files
To avoid including a header file more than once, either: #pragma once can be used, or the older trick (that vbox still uses): #ifndef MACRO # define MACRO Well, vbox still uses the latter and in its 7.0 release the macro was renamed from ___VirtualBox_CXPCOM_h to ___VirtualBox_CAPI_h. Now, ideally, we wouldn't touch those header files for older versions, but we need to use the same macro across all header files (because vbox_tmpl.c includes corresponding vbox_CAPI_XXX.h and then includes vbox_XPCOMCGlue.h which in turn includes vbox_CAPI_v6_1.h to get the basic typedefs). Instead of changing the newer 7.0 header file (and having to change all subsequent versions), let's change the old ones and as we drop support for them, we can forget this ever happened. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
c4b19a0e40
commit
90178989c6
@ -44,8 +44,8 @@
|
|||||||
* otherwise unspecified.
|
* otherwise unspecified.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ___VirtualBox_CXPCOM_h
|
#ifndef ___VirtualBox_CAPI_h
|
||||||
# define ___VirtualBox_CXPCOM_h
|
# define ___VirtualBox_CAPI_h
|
||||||
|
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
# pragma warning(push)
|
# pragma warning(push)
|
||||||
@ -32893,4 +32893,4 @@ typedef PCVBOXCAPI (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion);
|
|||||||
}
|
}
|
||||||
# endif /* __cplusplus */
|
# endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* !___VirtualBox_CXPCOM_h */
|
#endif /* !___VirtualBox_CAPI_h */
|
||||||
|
Loading…
Reference in New Issue
Block a user