All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
To: Josh Triplett <josh@freedesktop.org>
Cc: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: [PATCH 5/5] Add cygwin support to cgcc
Date: Tue, 22 May 2007 19:12:42 +0100	[thread overview]
Message-ID: <4653329A.9040407@ramsay1.demon.co.uk> (raw)



Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
  cgcc |   10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/cgcc b/cgcc
index e56226e..d50220c 100755
--- a/cgcc
+++ b/cgcc
@@ -214,6 +214,16 @@ sub add_specs {
  	    ' -D__STDC__=1';
      } elsif ($spec eq 'unix') {
  	return ' -Dunix=1 -D__unix=1 -D__unix__=1';
+    } elsif ( $spec =~ /^cygwin/) {
+	return &add_specs ('unix') .
+	    ' -D__STDC__=1 -D__CYGWIN__=1 -D__CYGWIN32__=1' .
+	    " -D'_cdecl=__attribute__((__cdecl__))'" .
+	    " -D'__cdecl=__attribute__((__cdecl__))'" .
+	    " -D'_stdcall=__attribute__((__stdcall__))'" .
+	    " -D'__stdcall=__attribute__((__stdcall__))'" .
+	    " -D'_fastcall=__attribute__((__fastcall__))'" .
+	    " -D'__fastcall=__attribute__((__fastcall__))'" .
+	    " -D'__declspec(x)=__attribute__((x))'";
      } elsif ($spec eq 'i86') {
  	return (' -Di386=1 -D__i386=1 -D__i386__=1' .
  		&integer_types (8, 16, 32, $m64 ? 64 : 32, 64) .
-- 
1.5.1

             reply	other threads:[~2007-05-23  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 18:12 Ramsay Jones [this message]
2007-05-23 17:41 ` [PATCH 5/5] Add cygwin support to cgcc Josh Triplett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4653329A.9040407@ramsay1.demon.co.uk \
    --to=ramsay@ramsay1.demon.co.uk \
    --cc=josh@freedesktop.org \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.