ARMmbed / ARMmbed/ntp-client

Add missing include guards to NTPClient.h

Open Beginner friendly
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7
Forks
12
PR merge metrics
No merged PRs in 30d

Description

The header file [`NTPClient.h`](https://github.com/ARMmbed/ntp-client/blob/e919cfb14e2029efafc0d1288a0223cbd09811f0/NTPClient.h) does not have an include guard (`#ifndef`/`#define` or `#pragma once`).
Without include guards, including this header multiple times in different files causes duplicate definition errors during compilation.
I suggest adding a `#pragma once` at the beginning of `NTPClient.h`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with NTPClient.h at the repository root and confirm how the header is currently structured. Add the requested include guard, then verify that including NTPClient.h multiple times no longer causes duplicate definition errors during compilation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
91/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.