Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9a33bfda
Kaydet (Commit)
9a33bfda
authored
Haz 10, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mingw64: force C99 formating strings for consistency
Change-Id: I1399596a3edc3324ae4aa04e3866ae2f5e673985
üst
f8df80b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
types.h
include/sal/types.h
+10
-8
No files found.
include/sal/types.h
Dosyayı görüntüle @
9a33bfda
...
@@ -29,6 +29,15 @@
...
@@ -29,6 +29,15 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#if defined ( __MINGW32__ ) && !defined ( __USE_MINGW_ANSI_STDIO )
/* Define to use the C99 formating string for coherence reasons.
* In mingw-w64 some functions are ported to the ms formating string
* some are not yet. This is the only way to make the formatting
* strings work all the time
*/
#define __USE_MINGW_ANSI_STDIO 1
#endif
/********************************************************************************/
/********************************************************************************/
/* Data types
/* Data types
*/
*/
...
@@ -101,17 +110,10 @@ typedef unsigned char sal_uInt8;
...
@@ -101,17 +110,10 @@ typedef unsigned char sal_uInt8;
#define SAL_CONST_INT64(x) x##ll
#define SAL_CONST_INT64(x) x##ll
#define SAL_CONST_UINT64(x) x##ull
#define SAL_CONST_UINT64(x) x##ull
#ifdef __MINGW32__
#define SAL_PRIdINT64 "I64d"
#define SAL_PRIuUINT64 "I64u"
#define SAL_PRIxUINT64 "I64x"
#define SAL_PRIXUINT64 "I64X"
#else
#define SAL_PRIdINT64 "lld"
#define SAL_PRIdINT64 "lld"
#define SAL_PRIuUINT64 "llu"
#define SAL_PRIuUINT64 "llu"
#define SAL_PRIxUINT64 "llx"
#define SAL_PRIxUINT64 "llx"
#define SAL_PRIXUINT64 "llX"
#define SAL_PRIXUINT64 "llX"
#endif
#else
#else
#error "Could not find 64-bit type, add support for your architecture"
#error "Could not find 64-bit type, add support for your architecture"
#endif
#endif
...
@@ -158,7 +160,7 @@ typedef void * sal_Handle;
...
@@ -158,7 +160,7 @@ typedef void * sal_Handle;
/* printf-style conversion specification length modifiers for size_t and
/* printf-style conversion specification length modifiers for size_t and
ptrdiff_t (most platforms support C99, MSC has its own extension) */
ptrdiff_t (most platforms support C99, MSC has its own extension) */
#if defined(_MSC_VER)
|| defined(__MINGW32__)
#if defined(_MSC_VER)
#define SAL_PRI_SIZET "I"
#define SAL_PRI_SIZET "I"
#define SAL_PRI_PTRDIFFT "I"
#define SAL_PRI_PTRDIFFT "I"
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment