summaryrefslogtreecommitdiff
path: root/build/myftw.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-07-25 15:10:58 +0000
committerjbj <devnull@localhost>1998-07-25 15:10:58 +0000
commit9acba0bdddcbd3cfd7c3d6729191b23dab432097 (patch)
tree84f90a7840af561c060554fadc9e0dd61d22ee3a /build/myftw.h
parent15ac92ba2933d5953abbcae4fa75a771ca5b85e3 (diff)
downloadlibrpm-tizen-9acba0bdddcbd3cfd7c3d6729191b23dab432097.tar.gz
librpm-tizen-9acba0bdddcbd3cfd7c3d6729191b23dab432097.tar.bz2
librpm-tizen-9acba0bdddcbd3cfd7c3d6729191b23dab432097.zip
Add multiple include avoidance and c++ prototype wrapping throughout *.h.
Delete trailing white space in *.h. CVS patchset: 2181 CVS date: 1998/07/25 15:10:58
Diffstat (limited to 'build/myftw.h')
-rw-r--r--build/myftw.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/build/myftw.h b/build/myftw.h
index 11b515643..bb9a41ca5 100644
--- a/build/myftw.h
+++ b/build/myftw.h
@@ -1,7 +1,7 @@
/* myftw.h -- ftw() using lstat() instead of stat() */
-#ifndef _MYFTW_H_
-#define _MYFTW_H_
+#ifndef _H_MYFTW_
+#define _H_MYFTW_
#include <sys/stat.h>
@@ -11,6 +11,10 @@
#define MYFTW_DNR 2 /* Unreadable directory. */
#define MYFTW_NS 3 /* Unstatable file. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef int (*myftwFunc) (void *fl, char *name, struct stat *statp);
int myftw (const char *dir,
@@ -18,4 +22,8 @@ int myftw (const char *dir,
myftwFunc func,
void *fl);
-#endif /* _MYFTW_H_ */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _H_MYFTW_ */