aboutsummaryrefslogtreecommitdiffstats
path: root/include/gsmhr
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-08-31 01:20:18 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:20:59 +0100
commit5f941573b0040c1b27014b4756155c86fe896b9f (patch)
tree5f25a07ce76b2822fe906ae88def9bb16c24ee7a /include/gsmhr
parent30209cedddb3b6ece5614b40f65f6a04e84388b4 (diff)
Use '#pragma once' instead of include guard
The most compilers today do support the '#pragma once', which is designed to cause the current source file to be included only once in a single compilation. One has several advantages, including: less code, avoidance of name clashes, and sometimes improvement in compilation speed. See: https://en.wikipedia.org/wiki/Pragma_once for details.
Diffstat (limited to 'include/gsmhr')
-rw-r--r--include/gsmhr/gsmhr.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/gsmhr/gsmhr.h b/include/gsmhr/gsmhr.h
index 17d42cb..b2fa0da 100644
--- a/include/gsmhr/gsmhr.h
+++ b/include/gsmhr/gsmhr.h
@@ -17,8 +17,7 @@
* along with gapk. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GSM_HR_H__
-#define __GSM_HR_H__
+#pragma once
#include <stdint.h>
@@ -36,5 +35,3 @@ int gsmhr_decode(struct gsmhr *state, int16_t *pcm, const int16_t *hr_
#ifdef __cplusplus
}
#endif
-
-#endif /* __GSM_HR_H__ */