diff options
author | Mats Kindahl <mats@sun.com> | 2010-04-06 14:11:07 +0200 |
---|---|---|
committer | Mats Kindahl <mats@sun.com> | 2010-04-06 14:11:07 +0200 |
commit | 3467c1a7b27af83d8d1f153fb3dd8f3b19e6222e (patch) | |
tree | 22c89421639ec73ce55e3c516d8cf77b486329e8 /include | |
parent | 2e28a449fa821592ed1064f9df5a84825b962245 (diff) | |
download | mariadb-git-3467c1a7b27af83d8d1f153fb3dd8f3b19e6222e.tar.gz |
WL#5030: Splitting mysql_priv.h
Moving an extern "C" to not cover #includes.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_dir.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/my_dir.h b/include/my_dir.h index 6a65bde41f3..de21bee7385 100644 --- a/include/my_dir.h +++ b/include/my_dir.h @@ -13,12 +13,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _my_dir_h -#define _my_dir_h -#ifdef __cplusplus -extern "C" { -#endif - #ifndef MY_DIR_H #define MY_DIR_H @@ -26,6 +20,10 @@ extern "C" { #include <sys/stat.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Defines for my_dir and my_stat */ #define MY_S_IFMT S_IFMT /* type of file */ @@ -103,9 +101,9 @@ extern void my_dirend(MY_DIR *buffer); extern MY_STAT *my_stat(const char *path, MY_STAT *stat_area, myf my_flags); extern int my_fstat(int filenr, MY_STAT *stat_area, myf MyFlags); -#endif /* MY_DIR_H */ - #ifdef __cplusplus } #endif -#endif + +#endif /* MY_DIR_H */ + |