summaryrefslogtreecommitdiff
path: root/src/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.c')
-rw-r--r--src/errors.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/errors.c b/src/errors.c
index a453dbe..9914b51 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -15,14 +15,17 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "port/string.h" /* for strncpy, strerror_r */
#include "errors.h"
#include "port/gettext.h" /* for localization */
-#include "port/string.h" /* for strncpy, strerror_r */
+
#if defined _WIN32
#define WIN32_MEAN_AND_LEAN
-#include <windows.h>
+#include <windows.h> /* for GetLastError */
+#else
+#include <errno.h> /* for errno */
#endif /* defined _WIN32 */
char *wolf_error_msg( const wolf_error_t error, char *buf, size_t buflen ) {