From: Ian Chapman Newsgroups: comp.os.msdos.djgpp Subject: __cdecl Date: Tue, 17 Mar 1998 12:32:10 -0500 Organization: Nortel Lines: 27 Message-ID: <350EB39A.1FA0@nortel.ca> Reply-To: ichapman AT nortel DOT ca NNTP-Posting-Host: bcarib90.bnr.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I'm was rather puzzled as to what this code is at first look. It turned out that __attribute__((stdcall)) directs the compiler how to stack registers and djgpp knows all about this one. CDECL however gave error before "(". I'm assured that this code did compile on a gnu compiler. Any ideas on this would be greatly appreciated. Regards Ian. bases.h #define STDCALL __attribute__ ((stdcall)) #define CDECL __cdecl ASCIIFunctions.h int STDCALL wvsprintfW( LPWSTR, LPCWSTR, va_list arglist); int CDECL wsprintfW(LPWSTR, LPCWSTR, ...); //error before (