upm_math.h: use new platform defines, include math.h on zephyr platforms

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson 2016-11-02 16:56:21 -06:00
parent d03de942c5
commit f2ad2c5679

View File

@ -1,5 +1,6 @@
/* /*
* Authors: * Authors:
* Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2016 Intel Corporation. * Copyright (c) 2016 Intel Corporation.
* *
* Permission is hereby granted, free of charge, to any person obtaining * Permission is hereby granted, free of charge, to any person obtaining
@ -24,11 +25,13 @@
#ifndef UPM_MATH_H_ #ifndef UPM_MATH_H_
#define UPM_MATH_H_ #define UPM_MATH_H_
#include <upm_platform.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#ifdef linux #if defined(UPM_PLATFORM_LINUX) || defined(UPM_PLATFORM_ZEPHYR)
#include <math.h> #include <math.h>
#endif #endif