Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add functions stub for compatibility with very minimal libc#188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
facchinm wants to merge1 commit intoarduino:master
base:master
Choose a base branch
Loading
fromfacchinm:very_minimal_libc
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletionsapi/Print.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,6 +26,11 @@
using namespace arduino;

// Public Methods //////////////////////////////////////////////////////////////
#ifdef __VERY_MINIMAL_LIBC__
// These functions should be implemented in the user code (C++)
bool isnan(float x);
bool isinf(float x);
#endif

/* default implementation: may be overridden */
size_t Print::write(const uint8_t *buffer, size_t size)
Expand Down
6 changes: 6 additions & 0 deletionsapi/String.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,6 +26,12 @@

#include <float.h>

#ifdef __VERY_MINIMAL_LIBC__
// These functions should be implemented in the user code (C++)
long atol(char* c);
float atof(char* c);
#endif

namespace arduino {

/*********************************************/
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp