Home » U++ Library support » U++ Widgets - General questions or Mixed problems » FileSelPreview - No previews bmp files (UPP 10694, 64bit, GCC, C++11) (Not work with bmp - plugin/bmp (UPP 10694, 64bit, GCC, C++11))
|
|
|
Re: FileSelPreview - No previews bmp files (UPP 10694, 64bit, GCC, C++11) [message #47473 is a reply to message #47449] |
Fri, 20 January 2017 14:37   |
SergeA
Messages: 13 Registered: October 2015 Location: Ukraine
|
Promising Member |
|
|
upp-mingw-10732, file upp\uppsrc\plugin\bmp\bmphdr.h
Hello!
I'm not sure that it is necessary to specify COMPILER_GCC here.
#if defined(COMPILER_MSC) || defined(COMPILER_GCC)
#pragma pack(push, 1)
#endif
..........
//#ifdef COMPILER_MSC
#if defined(COMPILER_MSC) || defined(COMPILER_GCC)
#pragma pack(pop)
#endif
Rather MINGW as he sharpened by compatibility with visualc therefore likely
#if defined(COMPILER_MSC) || defined(COMPILER_MINGW)
#pragma pack(push, 1)
#endif
..........
//#ifdef COMPILER_MSC
#if defined(COMPILER_MSC) || defined(COMPILER_MINGW)
#pragma pack(pop)
#endif
[Updated on: Fri, 20 January 2017 14:41] Report message to a moderator
|
|
|
|
Re: FileSelPreview - No previews bmp files (UPP 10694, 64bit, GCC, C++11) [message #47476 is a reply to message #47475] |
Fri, 20 January 2017 21:27   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
So, if GCC supports #pragma push, pop should we have following code now (Used several times in bmphdr.h!):
#ifdef COMPILER_GCC
__attribute__((packed))
#endif
I think it could be redundant, but I am not sure - so I am waiting for your opinion.
Sincerely,
Klugier
U++ - one framework to rule them all.
|
|
|
Re: FileSelPreview - No previews bmp files (UPP 10694, 64bit, GCC, C++11) [message #47484 is a reply to message #47476] |
Sat, 21 January 2017 12:45  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Fri, 20 January 2017 21:27Hello,
So, if GCC supports #pragma push, pop should we have following code now (Used several times in bmphdr.h!):
#ifdef COMPILER_GCC
__attribute__((packed))
#endif
I think it could be redundant, but I am not sure - so I am waiting for your opinion.
Sincerely,
Klugier
Not sure. In these matters all I can say: if it does work, do not break it.
Perhaps some compiler version has attribute working and pack pragma not. Or vice versa. Current MINGW certainly has attribute broken...
|
|
|
Goto Forum:
Current Time: Thu Apr 24 03:24:25 CEST 2025
Total time taken to generate the page: 0.02168 seconds
|