Skip to content

Commit

Permalink
Arduino CI wokrflow pipeline compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Mar 23, 2024
1 parent 8c15dba commit afa6712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/diwa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
# include <bootloader_random.h>
#endif

#if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) || defined(_MSC_VER)
#if (defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) || defined(_MSC_VER)) && !defined(PSP) && !defined(ARDUINO)
# include <cstring>
#endif

#include <diwa.h>
#include <diwa_conv.h>

#if (defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) || defined(_MSC_VER)) && !defined(PSP)
#if (defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) || defined(_MSC_VER)) && !defined(PSP) && !defined(ARDUINO)

static inline void writeToStream(std::ofstream& stream, const uint8_t* data, size_t size) {
for(size_t i = 0; i < size; i++)
Expand Down Expand Up @@ -375,7 +375,7 @@ DiwaError Diwa::saveToFile(File annFile) {
return NO_ERROR;
}

#elif (defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) || defined(_MSC_VER)) && !defined(PSP)
#if (defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) || defined(_MSC_VER)) && !defined(PSP) && !defined(ARDUINO)

DiwaError Diwa::loadFromFile(std::ifstream& annFile) {
if(!annFile.is_open())
Expand Down

0 comments on commit afa6712

Please sign in to comment.