Include config.h first; it defines _FILE_OFFSET_BITS, and if some system

header later causes it to be redefined - as happens on my Solaris 11
virtual machine - we get a redefinition warning, which gets treated as
an error.

svn path=/trunk/; revision=51344
This commit is contained in:
Guy Harris 2013-08-14 00:31:14 +00:00
parent cfa2dc5f6e
commit e8f42c6b48
7 changed files with 15 additions and 12 deletions

View File

@ -23,12 +23,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include "config.h"
#include "wmem_core.h"
#include "wmem_allocator.h"

View File

@ -23,12 +23,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include "config.h"
#include "wmem_core.h"
#include "wmem_allocator.h"

View File

@ -23,12 +23,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <glib.h>
#include "config.h"
#include "wmem_core.h"
#include "wmem_array.h"

View File

@ -23,11 +23,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include "config.h"
#include "wmem_core.h"
#include "wmem_strbuf.h"

View File

@ -23,13 +23,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <string.h>
#include <stdarg.h>
#include <glib.h>
#include "config.h"
#include "wmem_core.h"
#include "wmem_allocator.h"
#include "wmem_strutl.h"

View File

@ -23,14 +23,16 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <stdio.h>
#include <glib.h>
#include "wmem.h"
#include "wmem_allocator.h"
#include "wmem_allocator_block.h"
#include "wmem_allocator_simple.h"
#include "wmem_allocator_strict.h"
#include "config.h"
#define MAX_ALLOC_SIZE (1024*64)
#define MAX_SIMULTANEOUS_ALLOCS 1024

View File

@ -24,12 +24,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <glib.h>
#include "config.h"
#include "wmem_core.h"
#include "wmem_tree.h"
#include "wmem_user_cb.h"