Browse Source

support usage of headers within C++

added missing extern "C" to support usage of the header within C++
pull/26/head
Schafwolle 3 years ago
parent
commit
dff5bb53a0
  1. 9
      ftpd.h
  2. 11
      vfs.h

9
ftpd.h

@ -34,6 +34,15 @@
#ifndef __FTPD_H__
#define __FTPD_H__
#ifdef __cplusplus
extern "C"
{
#endif
void ftpd_init(void);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __FTPD_H__ */

11
vfs.h

@ -1,4 +1,4 @@
/* Copyright (c) 2013, Philipp Tölke
/* Copyright (c) 2013, Philipp Tlke
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -27,6 +27,11 @@
#ifndef INCLUDE_VFS_H
#define INCLUDE_VFS_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <source/ff.h>
#include <stddef.h>
#include <stdlib.h>
@ -86,4 +91,8 @@ void vfs_closedir(vfs_dir_t* dir);
vfs_dir_t* vfs_opendir(vfs_t* vfs, const char* path);
struct tm* gmtime(const time_t *c_t);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* INCLUDE_VFS_H */

Loading…
Cancel
Save