> The only really interesting point about this patch would be: > What actually happens if one tries to compile / run the old code with GCC > in 64-bit? > Raising the question if we should remove the > > defined(__CYGWIN__) > > I should follow up on this...
`cpp -dM <dev/null` gives us preprocessor macros in play. One on the differences between then when using Cygwin and Cygwin64 is 64-bit defines __x86_64__. It looks like we could have also used `defined __CYGWIN__ && !defined __CYGWIN32__`. In either case, `-m32` behaved as expected by using i386-related defines. I think we are safe with __CYGWIN__ and __x86_64__. We'll revisit it if we have to. ***** $ diff i386.txt x86_64.txt 0a1,2 > #define __amd64 1 > #define __amd64__ 1 15c17 < #define __code_model_32__ 1 --- > #define __code_model_medium__ 1 17d18 < #define __CYGWIN32__ 1 64c65 < #define __FLT_EVAL_METHOD__ 2 --- > #define __FLT_EVAL_METHOD__ 0 103,105c104 < #define __i386 1 < #define __i386__ 1 < #define __INT_FAST16_MAX__ 2147483647L --- > #define __INT_FAST16_MAX__ 9223372036854775807L 107c106 < #define __INT_FAST32_MAX__ 2147483647L --- > #define __INT_FAST32_MAX__ 9223372036854775807L 109c108 < #define __INT_FAST64_MAX__ 2147483647L --- > #define __INT_FAST64_MAX__ 9223372036854775807L 117c116 < #define __INT_LEAST64_MAX__ 2147483647L --- > #define __INT_LEAST64_MAX__ 9223372036854775807L 129c128 < #define __INT64_MAX__ 2147483647L --- > #define __INT64_MAX__ 9223372036854775807L 134,137c133,136 < #define __INTMAX_C(c) c ## LL < #define __INTMAX_MAX__ 9223372036854775807LL < #define __INTMAX_TYPE__ long long int < #define __INTPTR_MAX__ 2147483647L --- > #define __INTMAX_C(c) c ## L > #define __INTMAX_MAX__ 9223372036854775807L > #define __INTMAX_TYPE__ long int > #define __INTPTR_MAX__ 9223372036854775807L 155c154,155 < #define __LONG_MAX__ 2147483647L --- > #define __LONG_MAX__ 9223372036854775807L > #define __LP64__ 1 160a161,162 > #define __pic__ 1 > #define __PIC__ 1 162,163c164,165 < #define __PTRDIFF_MAX__ 2147483647 < #define __PTRDIFF_TYPE__ int --- > #define __PTRDIFF_MAX__ 9223372036854775807L > #define __PTRDIFF_TYPE__ long int 165a168 > #define __SEH__ 1 170,171c173,174 < #define __SIZE_MAX__ 4294967295U < #define __SIZE_TYPE__ unsigned int --- > #define __SIZE_MAX__ 18446744073709551615UL > #define __SIZE_TYPE__ long unsigned int 175,176c178,180 < #define __SIZEOF_LONG__ 4 < #define __SIZEOF_LONG_DOUBLE__ 12 --- > #define __SIZEOF_INT128__ 16 > #define __SIZEOF_LONG__ 8 > #define __SIZEOF_LONG_DOUBLE__ 16 178,179c182,183 < #define __SIZEOF_POINTER__ 4 < #define __SIZEOF_PTRDIFF_T__ 4 --- > #define __SIZEOF_POINTER__ 8 > #define __SIZEOF_PTRDIFF_T__ 8 181c185 < #define __SIZEOF_SIZE_T__ 4 --- > #define __SIZEOF_SIZE_T__ 8 184a189 > #define __SSE_MATH__ 1 185a191 > #define __SSE2_MATH__ 1 190c196 < #define __UINT_FAST16_MAX__ 4294967295UL --- > #define __UINT_FAST16_MAX__ 18446744073709551615UL 192c198 < #define __UINT_FAST32_MAX__ 4294967295UL --- > #define __UINT_FAST32_MAX__ 18446744073709551615UL 194c200 < #define __UINT_FAST64_MAX__ 4294967295UL --- > #define __UINT_FAST64_MAX__ 18446744073709551615UL 202c208 < #define __UINT_LEAST64_MAX__ 4294967295UL --- > #define __UINT_LEAST64_MAX__ 18446744073709551615UL 213c219 < #define __UINT64_MAX__ 4294967295UL --- > #define __UINT64_MAX__ 18446744073709551615UL 218,221c224,227 < #define __UINTMAX_C(c) c ## ULL < #define __UINTMAX_MAX__ 18446744073709551615ULL < #define __UINTMAX_TYPE__ long long unsigned int < #define __UINTPTR_MAX__ 4294967295UL --- > #define __UINTMAX_C(c) c ## UL > #define __UINTMAX_MAX__ 18446744073709551615UL > #define __UINTMAX_TYPE__ long unsigned int > #define __UINTPTR_MAX__ 18446744073709551615UL 225,226c231 < #define __USER_LABEL_PREFIX__ _ < #define __USING_SJLJ_EXCEPTIONS__ 1 --- > #define __USER_LABEL_PREFIX__ 233a239,240 > #define __x86_64 1 > #define __x86_64__ 1 235a243 > #define _LP64 1 238,239d245 < #define _X86_ 1 < #define i386 1 -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
