Skip to content

Commit 1504099

Browse files
committed
using namespace std; causing issue (Issue #1000)
1 parent 35ee37c commit 1504099

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Audio.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
audio.cpp
44
55
Created on: Oct 28.2018 */char audioI2SVers[] ="\
6-
Version 3.1.0n ";
7-
/* Updated on: Mar 18.2025
6+
Version 3.1.0m ";
7+
/* Updated on: Mar 22.2025
88
99
Author: Wolle (schreibfaul1)
1010
Audio library for ESP32 or ESP32-S3

src/Audio.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#ifndef I2S_GPIO_UNUSED
3737
#define I2S_GPIO_UNUSED -1 // = I2S_PIN_NO_CHANGE in IDF < 5
3838
#endif
39-
using namespace std;
4039

4140
extern __attribute__((weak)) void audio_info(const char*);
4241
extern __attribute__((weak)) void audio_id3data(const char*); //ID3 metadata
@@ -415,7 +414,7 @@ uint64_t bigEndian(uint8_t* base, uint8_t numBytes, uint8_t shiftLeft = 8) {
415414
return false;
416415
}
417416
//——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
418-
void vector_clear_and_shrink(vector<char*>&vec){
417+
void vector_clear_and_shrink(std::vector<char*>&vec){
419418
uint size = vec.size();
420419
for (int i = 0; i < size; i++) {
421420
if(vec[i]){

0 commit comments

Comments
 (0)