mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
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:
parent
d03de942c5
commit
f2ad2c5679
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user