Commit 26713665 authored by Nick Mathewson's avatar Nick Mathewson 🦞
Browse files

Include trunnel-local.h before any standard C headers

This way, trunnel-local can do things like setting _FILE_OFFSET_BITS
other things that need to happen before the standards headers.
parent 4a969e74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@
# a package.
#

__version__ = "1.4.5"
__version__ = "1.4.6"
+3 −3
Original line number Diff line number Diff line
@@ -7,12 +7,12 @@

#ifndef TRUNNEL_IMPL_H_INCLUDED_
#define TRUNNEL_IMPL_H_INCLUDED_
#include "trunnel.h"
#include <assert.h>
#include <string.h>
#ifdef TRUNNEL_LOCAL_H
#include "trunnel-local.h"
#endif
#include "trunnel.h"
#include <assert.h>
#include <string.h>

#if defined(_MSC_VER) && (_MSC_VER < 1600)
#define uint8_t unsigned char
+1 −1
Original line number Diff line number Diff line
@@ -6,9 +6,9 @@
 * See trunnel-impl.h for documentation of these functions.
 */

#include "trunnel-impl.h"
#include <stdlib.h>
#include <string.h>
#include "trunnel-impl.h"

#if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && \
	__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__