Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
entropy: fix C++ compiler warnings
Move includes to outside of the extern "C" statements to fix C linkage
issue.
| /include/misc/util.h:53:1: error: template with C linkage
|  template < class T, size_t N >
|  ^~~~~~~~

Signed-off-by: Greg S. Woods <gwoods@lexmark.com>
  • Loading branch information
Greg S. Woods authored and nashif committed May 21, 2019
1 parent 0b2a9b1 commit c0204b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/entropy.h
Expand Up @@ -20,13 +20,13 @@
* @{
*/

#include <zephyr/types.h>
#include <device.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <zephyr/types.h>
#include <device.h>

/**
* @typedef entropy_get_entropy_t
* @brief Callback API to get entropy.
Expand Down

0 comments on commit c0204b9

Please sign in to comment.