#49 Adding support for C++

This commit is contained in:
justinkim
2018-09-10 09:07:08 +09:00
parent 28e8a16b54
commit c69d27b875
23 changed files with 189 additions and 1 deletions

View File

@ -2,6 +2,10 @@
#ifndef __NETUTIL_H__
#define __NETUTIL_H__
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
#define SYSTEM_LITTLE_ENDIAN
@ -16,4 +20,8 @@ uint32_t htonl(uint32_t hostlong);
uint32_t ntohs(uint16_t netshort);
uint32_t ntohl(uint32_t netlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -7,6 +7,10 @@
#ifndef __TFTP_H__
#define __TFTP_H__
#ifdef __cplusplus
extern <EFBFBD><EFBFBD>C<EFBFBD><EFBFBD> {
#endif
#include <stdint.h>
#define F_APP_TFTP
@ -90,4 +94,8 @@ int TFTP_run(void);
void TFTP_read_request(uint32_t server_ip, uint8_t *filename);
void tftp_timeout_handler(void);
#ifdef __cplusplus
}
#endif
#endif /*__TFTP_H__ */