From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] git-compat-util: Avoid strcasecmp() being inlined Date: Fri, 13 Sep 2013 15:35:09 -0700 Message-ID: References: <523094F0.9000509@gmail.com> <20130911182921.GE4326@google.com> <20130911214116.GA12235@sigill.intra.peff.net> <20130912101419.GY2582@serenity.lan> <20130912182057.GB32069@sigill.intra.peff.net> <20130912202246.GF32069@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff King , John Keeping , Jonathan Nieder , Git Mailing List , Karsten Blees To: Sebastian Schuberth X-From: git-owner@vger.kernel.org Sat Sep 14 00:35:20 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VKbxQ-0002xW-5s for gcvg-git-2@plane.gmane.org; Sat, 14 Sep 2013 00:35:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755514Ab3IMWfO (ORCPT ); Fri, 13 Sep 2013 18:35:14 -0400 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:59178 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754924Ab3IMWfM (ORCPT ); Fri, 13 Sep 2013 18:35:12 -0400 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 370CE41D80; Fri, 13 Sep 2013 22:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=mvfEJ+p+MJvOBK/WN2zL8BGO8EE=; b=xEJxVI /sDEJ9PDwekT+xuzHV6Ze6zIocdU8O2cmso5r6Wp4ggMu/c9g4bhnxhUKZ1N5w+Y 5VWHD/THph68omMs3FwB5zew4TTQdsbsYIBN7tMd70/LzX0B1HSQrKO0yj6929WX QX4qMuQQeJzNnv8o/5V31WKuXaazAwrixkHFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=dUYLk9OteSXOxv0XMqUeiawgFtib1VP5 fteGbxXfmepHzv6ZzmN97F1srMrKGiXBqrAjnVOO6pfM0hc3xIB+X/9JRwnj5WVv BR44iDl+257uBGEFZbhtvKSgxG+nuymOvum2VmLwBGtQuuhh1kXX1YnZSeJtVM2a dir1WF0eyTE= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 2901241D7D; Fri, 13 Sep 2013 22:35:12 +0000 (UTC) Received: from pobox.com (unknown [72.14.226.9]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 809AE41D76; Fri, 13 Sep 2013 22:35:11 +0000 (UTC) In-Reply-To: (Junio C. Hamano's message of "Fri, 13 Sep 2013 15:06:42 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: C0391936-1CC4-11E3-9E83-CA9B8506CD1E-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > You can explicitly include the system header from your compatibility > layer, i.e. > ... > and then in config.mak.uname, do something like this: > ... > COMPAT_CFLAGS += -DSYSTEM_STRING_H_HEADER=$(SYSTEM_STRING_H_HEADER) You need to have one level of quoting to keep "" from being eaten; it should be sufficient to see how SHA1_HEADER that is included in cache.h is handled and imitate it.