X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Finternals%2F_PDCLIB_config.h;h=168053fb7d8b6f244cd12ea2126157c6cda6b4c6;hp=e9cde3c01cf3d93cc45a77f901be659ada81d64c;hb=bdd913fd4a86f506a7fc42a04363c75fcb0ab093;hpb=1b1c0ce961e039ee602d179b9257abeabae65010 diff --git a/platform/example/internals/_PDCLIB_config.h b/platform/example/internals/_PDCLIB_config.h old mode 100644 new mode 100755 index e9cde3c..168053f --- a/platform/example/internals/_PDCLIB_config.h +++ b/platform/example/internals/_PDCLIB_config.h @@ -219,7 +219,7 @@ struct _PDCLIB_imaxdiv_t your compiler. */ -#ifdef __i386 +#if defined( __i386 ) /* The following generic implementation works only for pure stack-based architectures, and only if arguments are aligned to pointer @@ -235,7 +235,7 @@ typedef char * _PDCLIB_va_list; #define _PDCLIB_va_end( ap ) ( (ap) = (void *)0, (void)0 ) #define _PDCLIB_va_start( ap, parmN ) ( (ap) = (char *) &parmN + ( _PDCLIB_va_round(parmN) ), (void)0 ) -#elif __x86_64 +#elif defined( __x86_64 ) /* No way to cover x86_64 with a generic implementation, as it uses register- based parameter passing. Using the GCC builtins here. @@ -384,4 +384,9 @@ typedef int _PDCLIB_fd_t; /* Default is 4 (0, ERANGE, EDOM, EILSEQ). */ #define _PDCLIB_ERRNO_MAX 4 +#ifdef __CYGWIN__ +typedef unsigned int wint_t; +#endif + + #endif