mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Enforce a standard header file guard symbol name
Require that all headers are guarded by a symbol named LIBVIRT_$FILENAME where $FILENAME is the uppercased filename, with all characters outside a-z changed into '_'. Note we do not use a leading __ because that is technically a namespace reserved for the toolchain. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __VIR_MOCK_H__
|
||||
# define __VIR_MOCK_H__
|
||||
#ifndef LIBVIRT_VIRMOCK_H
|
||||
# define LIBVIRT_VIRMOCK_H
|
||||
|
||||
# if HAVE_DLFCN_H
|
||||
# include <dlfcn.h>
|
||||
@@ -300,4 +300,4 @@
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif /* __VIR_MOCK_H__ */
|
||||
#endif /* LIBVIRT_VIRMOCK_H */
|
||||
|
||||
Reference in New Issue
Block a user