X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=internals%2F_PDCLIB_glue.h;h=68f37e7827ee5f7f6684afcd213a778a3cb85e38;hb=be738e08ec9ba2498d81153bee1de9b8af7e764c;hp=1d978638f8f46cce35c4c188864166b876f61b4f;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib diff --git a/internals/_PDCLIB_glue.h b/internals/_PDCLIB_glue.h index 1d97863..68f37e7 100644 --- a/internals/_PDCLIB_glue.h +++ b/internals/_PDCLIB_glue.h @@ -1,16 +1,21 @@ -#ifndef __PDCLIB_GLUE_H -#define __PDCLIB_GLUE_H __PDCLIB_GLUE_H /* OS glue functions declaration <_PDCLIB_glue.h> This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ -#include <_PDCLIB_int.h> -#include <_PDCLIB_io.h> +#ifndef __PDCLIB_GLUE_H +#define __PDCLIB_GLUE_H __PDCLIB_GLUE_H + +#include "_PDCLIB_int.h" +#include "_PDCLIB_io.h" + #include #include -_PDCLIB_BEGIN_EXTERN_C + +#ifdef __cplusplus +extern "C" { +#endif /* -------------------------------------------------------------------------- */ /* OS "glue", part 2 */ @@ -57,11 +62,6 @@ bool _PDCLIB_open( _PDCLIB_fd_t* fd, const _PDCLIB_fileops_t** ops, char const * filename, unsigned int mode ); -/* A system call that removes a file identified by name. Return zero on success, - non-zero otherwise. -*/ -int _PDCLIB_remove( const char * filename ); - /* A system call that renames a file from given old name to given new name. Return zero on success, non-zero otherwise. In case of failure, the file must still be accessible by old name. Any handling of open files etc. is @@ -69,5 +69,8 @@ int _PDCLIB_remove( const char * filename ); */ int _PDCLIB_rename( const char * old, const char * newn); -_PDCLIB_END_EXTERN_C +#ifdef __cplusplus +} +#endif + #endif