long double: from mac to windows..

Sandro Gallo (3)
Hi all,
I hope I can do a question about C programming in this forum; otherwise I apologize.

I implemented a C program using my mac book.
Now, my client wants to migrate to windows OS (MinGW).

Program does many calculation using long double: on mac it works fine, otherwise on winz doesn't.

I read on internet the problem is that long double type is supposed to be a double type in WinZ, because it is no supported.

Making sizeof of double and long double, I obtain:
MAC
DOUBLE=8, LONG DOUBLE=16
WINZ
DOUBLE=8, LONG DOUBLE=12

Is there a solution or a workaround?
How can I "force" the use of long double or its simulation?

Sorry for my English.
Thanks in advance
modoran (1101)
Maybe you should look at an arbitrary precision library, like GMP. It is cross-platform and compiles under windows using MSYS and MinGW as well.
Sandro Gallo (3)
Thank you for your answer.
I investigate about GMP.
How can I use that library?
modoran (1101)
You can find all documentation and example code on library website:
http://gmplib.org/
Sandro Gallo (3)
thanks
Topic archived. No new replies allowed.