File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 67
67
#endif
68
68
69
69
// Attribute
70
- #if defined(__GNUC__ ) && (__GNUC__ >= 4 )
70
+ #if !defined( LIBPLZMA_OS_WINDOWS ) && defined(__GNUC__ ) && (__GNUC__ >= 4 )
71
71
#define LIBPLZMA_ATTRIB __attribute__((visibility("default")))
72
72
#define LIBPLZMA_ATTRIB_PRIVATE __attribute__((visibility("hidden")))
73
73
#endif
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ namespace plzma {
41
41
namespace fileUtils {
42
42
43
43
inline int fileSeek (FILE * LIBPLZMA_NONNULL file, const int64_t offset, const int origin) noexcept {
44
- #if defined(LIBPLZMA_MSC)
44
+ #if defined(LIBPLZMA_MSC) || defined(LIBPLZMA_MINGW)
45
45
return _fseeki64 (file, offset, origin);
46
46
#elif defined(LIBPLZMA_POSIX)
47
47
return fseeko (file, offset, origin);
Original file line number Diff line number Diff line change 152
152
# error "Configuration error: MinGW without posix."
153
153
#endif
154
154
155
- #if defined(LIBPLZMA_MINGW )
156
- # undef LIBPLZMA_C_API_PRIVATE
157
- # define LIBPLZMA_C_API_PRIVATE (RETURN_TYPE ) LIBPLZMA_C_EXTERN RETURN_TYPE
158
- #endif
159
-
160
- #if defined(__GNUC__ ) || defined(__clang__ )
161
- # define LIBPLZMA_PACKED_ALIGNED_START (ALIGN )
162
- # define LIBPLZMA_PACKED_ALIGNED_END (ALIGN ) __attribute__((packed, aligned(ALIGN)))
163
- #elif defined(_MSC_VER ) || defined(_MSC_FULL_VER )
164
- # define LIBPLZMA_PACKED_ALIGNED_START (ALIGN ) __pragma( pack(push, ALIGN) )
165
- # define LIBPLZMA_PACKED_ALIGNED_END (ALIGN ) __pragma( pack(pop) )
166
- #else // !(_MSC_VER || _MSC_FULL_VER)
167
- # define LIBPLZMA_PACKED_ALIGNED_START (ALIGN )
168
- # define LIBPLZMA_PACKED_ALIGNED_END (ALIGN )
169
- #endif // __GNUC__ || __clang__
170
-
171
155
#if defined(LIBPLZMA_OS_WINDOWS )
172
156
173
157
# if !defined(LIBPLZMA_MSC ) && (defined(_MSC_VER ) || defined(_MSC_FULL_VER ))
You can’t perform that action at this time.
0 commit comments