Skip to content

Commit

Permalink
canonical header files
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Dec 12, 2020
1 parent 0b2c2f4 commit ee4dbb3
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 18 deletions.
1 change: 0 additions & 1 deletion example/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,3 @@ int main(int argc, char **argv)

return 0;
}

4 changes: 2 additions & 2 deletions src/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UHTTPD_CONFIG_H
#define _UHTTPD_CONFIG_H
#ifndef LIBUHTTPD_CONFIG_H
#define LIBUHTTPD_CONFIG_H

#define UHTTPD_VERSION_MAJOR @UHTTPD_VERSION_MAJOR@
#define UHTTPD_VERSION_MINOR @UHTTPD_VERSION_MINOR@
Expand Down
4 changes: 2 additions & 2 deletions src/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UH_CONNECTION_H
#define _UH_CONNECTION_H
#ifndef LIBUHTTPD_CONNECTION_H
#define LIBUHTTPD_CONNECTION_H

#include <ev.h>
#include <stdarg.h>
Expand Down
4 changes: 2 additions & 2 deletions src/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UH_FILE_H
#define _UH_FILE_H
#ifndef LIBUHTTPD_FILE_H
#define LIBUHTTPD_FILE_H

#include "connection.h"

Expand Down
4 changes: 2 additions & 2 deletions src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UH_LOG_H
#define _UH_LOG_H
#ifndef LIBUHTTPD_LOG_H
#define LIBUHTTPD_LOG_H

#include <syslog.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions src/mimetypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UH_MIMETYPES_H
#define _UH_MIMETYPES_H
#ifndef LIBUHTTPD_MIMETYPES_H
#define LIBUHTTPD_MIMETYPES_H

struct mimetype {
const char *extn;
Expand Down
4 changes: 2 additions & 2 deletions src/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UH_SSL_H
#define _UH_SSL_H
#ifndef LIBUHTTPD_SSL_H
#define LIBUHTTPD_SSL_H

#include "config.h"
#include "log.h"
Expand Down
4 changes: 2 additions & 2 deletions src/uhttpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UHTTPD_H
#define _UHTTPD_H
#ifndef LIBUHTTPD_UHTTPD_H
#define LIBUHTTPD_UHTTPD_H

#include <ev.h>

Expand Down
5 changes: 2 additions & 3 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* SOFTWARE.
*/

#ifndef _UH_UTILS_H
#define _UH_UTILS_H
#ifndef LIBUHTTPD_UTILS_H
#define LIBUHTTPD_UTILS_H

#include <stddef.h>
#include <stdbool.h>
Expand All @@ -40,4 +40,3 @@
#endif

#endif

0 comments on commit ee4dbb3

Please sign in to comment.