Skip to content

Commit

Permalink
Merge pull request #46 from ChenxuanZhao/development
Browse files Browse the repository at this point in the history
C++ support
  • Loading branch information
armink authored Jul 22, 2020
2 parents 771bb0f + 8ed9bdf commit 190096a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions ntp/ntp.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@
* Change Logs:
* Date Author Notes
* 2018-02-10 armink the first version
* 2020-07-21 Chenxuan C++ support
*/
#ifndef _NTP_H_
#define _NTP_H_

#ifndef __NTP_H__
#define __NTP_H__

#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* Get the UTC time from NTP server
*
Expand Down Expand Up @@ -58,4 +64,8 @@ time_t ntp_get_local_time(const char *host_name);
*/
time_t ntp_sync_to_rtc(const char *host_name);

#endif /* _NTP_H_ */
#ifdef __cplusplus
}
#endif

#endif /* __NTP_H__ */

0 comments on commit 190096a

Please sign in to comment.