update ifndef-define statements in every header with CUTIL_ prefix that already included files with matching defines will not collide

This commit is contained in:
mykola2312 2022-05-17 02:14:28 +03:00
parent f744ec0f35
commit a07e2d6f01
8 changed files with 18 additions and 14 deletions

View file

@ -1,5 +1,5 @@
#ifndef __ARRAY_H
#define __ARRAY_H
#ifndef __CUTIL_ARRAY_H
#define __CUTIL_ARRAY_H
#include "cutypes.h"

View file

@ -1,5 +1,5 @@
#ifndef __BITMAP_H
#define __BITMAP_H
#ifndef __CUTIL_BITMAP_H
#define __CUTIL_BITMAP_H
#include "cutypes.h"

View file

@ -1,5 +1,5 @@
#ifndef __CUTYPES_H
#define __CUTYPES_H
#ifndef __CUTIL_TYPES_H
#define __CUTIL_TYPES_H
#define ARCH_UNKNOWN 0
#define x86_64 1

View file

@ -1,5 +1,5 @@
#ifndef __ENDIAN_H
#define __ENDIAN_H
#ifndef __CUTIL_ENDIAN_H
#define __CUTIL_ENDIAN_H
#include "cutypes.h"

4
list.h
View file

@ -1,5 +1,5 @@
#ifndef __LIST_H
#define __LIST_H
#ifndef __CUTIL_LIST_H
#define __CUTIL_LIST_H
#include "cutypes.h"

4
string.h Normal file
View file

@ -0,0 +1,4 @@
#ifndef __CUTIL_STRING_H
#define __CUTIL_STRING_H
#endif

View file

@ -1,5 +1,5 @@
#ifndef __STRUCT_H
#define __STRUCT_H
#ifndef __CUTIL_STRUCT_H
#define __CUTIL_STRUCT_H
#include "cutypes.h"
#include "endian.h"

View file

@ -1,5 +1,5 @@
#ifndef __VA_LIST_H
#define __VA_LIST_H
#ifndef __CUTIL_VA_LIST_H
#define __CUTIL_VA_LIST_H
#include "cutypes.h"