protection for double include of mxml.h or strlcpy.h

This commit is contained in:
Ryu Sawada 2007-10-23 17:53:45 +00:00
parent 1704e5bf1c
commit 67b0ca3113
2 changed files with 9 additions and 0 deletions

4
mxml.h
View File

@ -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_ */
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/

View File

@ -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_ */