enum: Don't directly include enum.h
To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well.
This commit is contained in:
@@ -26,7 +26,7 @@ typedef enum level_t level_t;
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "utils/enum.h"
|
||||
#include <utils/utils.h>
|
||||
|
||||
/**
|
||||
* Debug message group.
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <utils/utils.h>
|
||||
|
||||
#include "enum.h"
|
||||
|
||||
|
||||
@@ -29,9 +29,6 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "enum.h"
|
||||
#include "utils/strerror.h"
|
||||
|
||||
/**
|
||||
* strongSwan program return codes
|
||||
*/
|
||||
@@ -73,6 +70,9 @@
|
||||
# define TRUE true
|
||||
#endif /* TRUE */
|
||||
|
||||
#include "enum.h"
|
||||
#include "utils/strerror.h"
|
||||
|
||||
/**
|
||||
* Helper function that compares two strings for equality
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user