Clean up and standardize header guards

This commit is contained in:
Alexander Larsson 2010-01-29 16:00:10 +01:00
parent 430b3b036d
commit 49fccfefc8
10 changed files with 20 additions and 24 deletions

View File

@ -43,4 +43,4 @@
#define spice_mb() __asm {lock add [esp], 0}
#endif
#endif _H_SPICE_BARRIER
#endif /* _H_SPICE_BARRIER */

View File

@ -28,8 +28,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _H_DRAW
#define _H_DRAW
#ifndef _H_SPICE_DRAW
#define _H_SPICE_DRAW
#include <spice/types.h>
@ -370,4 +370,4 @@ typedef struct SPICE_ATTR_PACKED SpiceCursorHeader {
#include <spice/end-packed.h>
#endif
#endif /* _H_SPICE_DRAW */

View File

@ -28,8 +28,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef RED_ERROR_CODES_H
#define RED_ERROR_CODES_H
#ifndef _H_SPICE_ERROR_CODES
#define _H_SPICE_ERROR_CODES
#define SPICEC_ERROR_CODE_SUCCESS 0
#define SPICEC_ERROR_CODE_ERROR 1
@ -47,5 +47,5 @@
#define SPICEC_ERROR_CODE_INVALID_ARG 13
#define SPICEC_ERROR_CODE_CMD_LINE_ERROR 14
#endif
#endif /* _H_SPICE_ERROR_CODES */

View File

@ -29,8 +29,8 @@
*/
#ifndef _H_RING_
#define _H_RING_
#ifndef _H_SPICE_RING
#define _H_SPICE_RING
#include <spice/types.h>
@ -133,4 +133,4 @@ typedef struct SPICE_ATTR_PACKED name { \
#endif
#endif /* _H_SPICE_RING */

View File

@ -28,8 +28,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _H_RED
#define _H_RED
#ifndef _H_SPICE_PROTOCOL
#define _H_SPICE_PROTOCOL
#include <spice/types.h>
@ -825,5 +825,4 @@ typedef struct SPICE_ATTR_PACKED SpiceMsgcTunnelSocketTokens {
#include <spice/end-packed.h>
#endif
#endif /* _H_SPICE_PROTOCOL */

View File

@ -355,4 +355,4 @@ typedef struct SPICE_ATTR_PACKED QXLImage {
#include <spice/end-packed.h>
#endif
#endif /* _H_QXL_DEV */

View File

@ -28,8 +28,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _H_REDS_STAT
#define _H_REDS_STAT
#ifndef _H_SPICE_STATS
#define _H_SPICE_STATS
#include <spice/types.h>
@ -64,5 +64,4 @@ typedef struct SpiceStat {
SpiceStatNode nodes[];
} SpiceStat;
#endif
#endif /* _H_SPICE_STATS */

View File

@ -37,4 +37,4 @@
* include the right one here. */
#include <stdint.h>
#endif _H_SPICE_TYPES
#endif /* _H_SPICE_TYPES */

View File

@ -94,6 +94,4 @@ enum {
#include <spice/end-packed.h>
#endif
#endif /* _H_VD_AGENT */

View File

@ -80,4 +80,4 @@ typedef struct SPICE_ATTR_PACKED VDIPortRam {
#include <spice/end-packed.h>
#endif
#endif /* _H_VDI_DEV */