Ver código fonte

Don't define true & false with stdbool.h included

main
PaulStoffregen 5 anos atrás
pai
commit
06492c1d11
3 arquivos alterados com 1 adições e 8 exclusões
  1. +1
    -4
      teensy/wiring.h
  2. +0
    -2
      teensy3/wiring.h
  3. +0
    -2
      teensy4/wiring.h

+ 1
- 4
teensy/wiring.h Ver arquivo

@@ -40,9 +40,6 @@
extern "C"{
#endif

#define true 1
#define false 0

#define PI 3.1415926535897932384626433832795
#define HALF_PI 1.5707963267948966192313216916398
#define TWO_PI 6.283185307179586476925286766559
@@ -94,7 +91,7 @@ typedef unsigned int word;

#define bit(b) (1UL << (b))

typedef uint8_t boolean;
typedef bool boolean;
typedef uint8_t byte;

unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout);

+ 0
- 2
teensy3/wiring.h Ver arquivo

@@ -191,8 +191,6 @@ void loop(void);
typedef bool boolean;
#else
typedef uint8_t boolean;
#define false 0
#define true (!false)
#endif

#endif

+ 0
- 2
teensy4/wiring.h Ver arquivo

@@ -191,8 +191,6 @@ void loop(void);
typedef bool boolean;
#else
typedef uint8_t boolean;
#define false 0
#define true (!false)
#endif

#endif

Carregando…
Cancelar
Salvar