From: joeycastillo Date: Wed, 18 Sep 2024 19:12:58 +0000 (-0400) Subject: use #pragma once X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=f5435d468df702c57af19c5dd380ab073d82f700;p=sensor-watch.git use #pragma once --- diff --git a/watch-library/shared/watch/watch_gpio.h b/watch-library/shared/watch/watch_gpio.h index fc43642..53f1d4d 100644 --- a/watch-library/shared/watch/watch_gpio.h +++ b/watch-library/shared/watch/watch_gpio.h @@ -21,8 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef _WATCH_GPIO_H_INCLUDED -#define _WATCH_GPIO_H_INCLUDED + +#pragma once + ////< @file watch_gpio.h #include "watch.h" @@ -73,4 +74,3 @@ void watch_disable_digital_output(const uint8_t pin); */ void watch_set_pin_level(const uint8_t pin, const bool level); /// @} -#endif diff --git a/watch-library/shared/watch/watch_tcc.h b/watch-library/shared/watch/watch_tcc.h index 0443b42..401a872 100644 --- a/watch-library/shared/watch/watch_tcc.h +++ b/watch-library/shared/watch/watch_tcc.h @@ -21,8 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef _WATCH_BUZZER_H_INCLUDED -#define _WATCH_BUZZER_H_INCLUDED + +#pragma once + ////< @file watch_buzzer.h #include "watch.h" @@ -258,4 +259,3 @@ void watch_set_led_yellow(void); void watch_set_led_off(void); /// @} -#endif