mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
protection for double include of mxml.h or strlcpy.h
This commit is contained in:
parent
1704e5bf1c
commit
67b0ca3113
4
mxml.h
4
mxml.h
@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef _MXML_H_
|
||||||
|
#define _MXML_H_
|
||||||
|
|
||||||
#define MXML_NAME_LENGTH 64
|
#define MXML_NAME_LENGTH 64
|
||||||
|
|
||||||
#define ELEMENT_NODE 1
|
#define ELEMENT_NODE 1
|
||||||
@ -130,4 +133,5 @@ void mxml_basename(char *path);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _MXML_H_ */
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
|
#ifndef _STRLCPY_H_
|
||||||
|
#define _STRLCPY_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -27,3 +30,5 @@ size_t EXPRT strlcat(char *dst, const char *src, size_t size);
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /*_STRLCPY_H_ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user