Re: [opensc-commits] svn opensc changed [2363] No asm/types.h on MacOSX either [u]

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [opensc-commits] svn opensc changed [2363] No asm/types.h on MacOSX either [u]

Andreas Jellinghaus-2
apple has a 64bit plattform too, right?
unsigned long will be 64 bit on that plattform,
so this wouldn't be right.

Andreas

> No asm/types.h on MacOSX either

> --- trunk/src/tools/pkcs15-tool.c 2005-06-27 11:47:56 UTC (rev 2362)
> +++ trunk/src/tools/pkcs15-tool.c 2005-06-27 11:51:00 UTC (rev 2363)
> @@ -22,11 +22,11 @@
>  #include <config.h>
>  #endif
>  #ifdef HAVE_OPENSSL
> -#ifndef _WIN32
> +#if defined(__APPLE__) || defined(_WIN32)
> +typedef unsigned long __u32;
> +#else
>  #include <asm/types.h>
>  #include <netinet/in.h>
> -#else
> -typedef unsigned long __u32;
>  #endif
>  #include <openssl/bn.h>
>  #include <openssl/crypto.h>
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: [opensc-commits] svn opensc changed [2363] No asm/types.h on MacOSX either [u]

Martin Paljak
On 6/27/05, Andreas Jellinghaus [c] <[hidden email]> wrote:
> apple has a 64bit plattform too, right?
Hmm, and there's 64b windows too...

--
Martin Paljak
[hidden email]
http://martin.paljak.pri.ee/
+372.5156495 - phone
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: [opensc-commits] svn opensc changed [2363] No asm/types.h on MacOSX either [u]

Stef Hoeben
In reply to this post by Andreas Jellinghaus-2
Hm, guess that's so..

There's an u_int32_t in /usr/include/stdint.h.

Would there be a problem with this one?

Cheers,
Stef

Andreas Jellinghaus [c] wrote:

>apple has a 64bit plattform too, right?
>unsigned long will be 64 bit on that plattform,
>so this wouldn't be right.
>
>Andreas
>
>  
>
>>No asm/types.h on MacOSX either
>>    
>>
>
>  
>
>>--- trunk/src/tools/pkcs15-tool.c 2005-06-27 11:47:56 UTC (rev 2362)
>>+++ trunk/src/tools/pkcs15-tool.c 2005-06-27 11:51:00 UTC (rev 2363)
>>@@ -22,11 +22,11 @@
>> #include <config.h>
>> #endif
>> #ifdef HAVE_OPENSSL
>>-#ifndef _WIN32
>>+#if defined(__APPLE__) || defined(_WIN32)
>>+typedef unsigned long __u32;
>>+#else
>> #include <asm/types.h>
>> #include <netinet/in.h>
>>-#else
>>-typedef unsigned long __u32;
>> #endif
>> #include <openssl/bn.h>
>> #include <openssl/crypto.h>
>>    
>>
>
>  
>

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: [opensc-commits] svn opensc changed [2363] No asm/types.h on MacOSX either [u]

Andreas Jellinghaus-2
On Tuesday 28 June 2005 08:27, Stef Hoeben wrote:
> Hm, guess that's so..
>
> There's an u_int32_t in /usr/include/stdint.h.
>
> Would there be a problem with this one?

no. I knew there was some kind of universal fixed
name for 32 bit unsigned number, but I had forgotten
the name. that one is the right one. Guess we can use
it on windows, too?

Andreas
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: [opensc-commits] svn opensc changed [2363] No asm/types.h on MacOSX either [u]

Stef Hoeben
Andreas Jellinghaus [c] wrote:

>On Tuesday 28 June 2005 08:27, Stef Hoeben wrote:
>  
>
>>Hm, guess that's so..
>>
>>There's an u_int32_t in /usr/include/stdint.h.
>>
>>Would there be a problem with this one?
>>    
>>
>
>no. I knew there was some kind of universal fixed
>name for 32 bit unsigned number, but I had forgotten
>the name. that one is the right one.
>
Okay, changed to uint32_t on Mac.

>Guess we can use
>it on windows, too?
>
No... Pretty weird IMHO, no (ANSI) type to represent such basic
platform independent things. (If someone know where to find more info...)

(Note: there's also warnings on Mac wrt doing a printf("%d)", size_t)
in pkcs15-tool.c. The compiler says it expects type 'int' for a %d.)

Stef

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel