X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgnulib%2Fimport%2Ffnmatch.c;h=0858091cf36336f64b17b22c144419947f2696e4;hb=f568655424ad268c8c5df3f56e4e19a86b16623d;hp=f4a9e7c674cccb5363dd645e89bc42dd4792c600;hpb=4a626d0a0f451c3288a461f64a9f8a49790d422b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gnulib/import/fnmatch.c b/gdb/gnulib/import/fnmatch.c index f4a9e7c674..0858091cf3 100644 --- a/gdb/gnulib/import/fnmatch.c +++ b/gdb/gnulib/import/fnmatch.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-1993, 1996-2007, 2009-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-1993, 1996-2007, 2009-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ # define _GNU_SOURCE 1 #endif -#if ! defined __builtin_expect && __GNUC__ < 3 +#if ! defined __builtin_expect && defined __GNUC__ && __GNUC__ < 3 # define __builtin_expect(expr, expected) (expr) #endif @@ -67,6 +67,8 @@ extern int fnmatch (const char *pattern, const char *string, int flags); # define SIZE_MAX ((size_t) -1) #endif +#include "flexmember.h" + /* We often have to test for FNM_FILE_NAME and FNM_PERIOD being both set. */ #define NO_LEADING_PERIOD(flags) \ ((flags & (FNM_FILE_NAME | FNM_PERIOD)) == (FNM_FILE_NAME | FNM_PERIOD))