From 94d72ce4089e29df9d4ae7dda6d97ef3babeaff1 Mon Sep 17 00:00:00 2001 From: coco875 Date: Sat, 21 Dec 2024 23:59:49 +0100 Subject: [PATCH] Update math.h --- include/libc/math.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/libc/math.h b/include/libc/math.h index 3adb229f..b523798d 100644 --- a/include/libc/math.h +++ b/include/libc/math.h @@ -50,11 +50,12 @@ typedef union { #ifdef __cplusplus extern "C" { -#endif +f32 __sinf(f32) throw(); +f32 __cosf(f32) throw(); +} +#else f32 __sinf(f32); f32 __cosf(f32); -#ifdef __cplusplus -} #endif #endif