Skip to content
Permalink
Browse files

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 Mar 20, 2019
1 parent 0b2a9b1 commit c0204b929e5b8cd8511da7c087cee6e399a1cea4
Showing with 3 additions and 3 deletions.
  1. +3 −3 include/entropy.h
@@ -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.

0 comments on commit c0204b9

Please sign in to comment.
You can’t perform that action at this time.