Skip to content

Commit

Permalink
chips/atmega: Adapt to more recent avr libc
Browse files Browse the repository at this point in the history
avr libc has changed how float and double stuff is managed; a couple of
minor changes are needed to cope.

Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
keith-packard committed Nov 13, 2024
1 parent 79cd805 commit 85108d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chips/atmega/snek-atmega-math.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef _SNEK_MEGA_MATH_H_
#define _SNEK_MEGA_MATH_H_

#undef float

float exp2f(float x);

float expm1f(float x);
Expand Down
1 change: 0 additions & 1 deletion snek-atof.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <stdlib.h>

#ifdef AVR
#define float double
#include <avr/pgmspace.h>
#else
#define __flash
Expand Down

0 comments on commit 85108d7

Please sign in to comment.