Use #pragma once

#pragma once is safer and simpler. According to Wikipedia it's supported by all major compilers.
This commit is contained in:
Alexander Kedrik
2013-12-29 06:11:50 +04:00
committed by Michael Stapelberg
parent 67b213665b
commit e2ebe3e2ae
64 changed files with 64 additions and 254 deletions

View File

@ -8,8 +8,7 @@
* default (ringbuffer for storing the debug log).
*
*/
#ifndef I3_I3_SHMLOG_H
#define I3_I3_SHMLOG_H
#pragma once
#include <stdint.h>
#include <pthread.h>
@ -43,5 +42,3 @@ typedef struct i3_shmlog_header {
* tail -f) in an efficient way. */
pthread_cond_t condvar;
} i3_shmlog_header;
#endif