HFST - Helsinki Finite-State Transducer Technology - C++ API  version 3.9.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FormatSpecifiers.h
1 // Copyright (c) 2016 University of Helsinki
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 3 of the License, or (at your option) any later version.
7 // See the file COPYING included with this distribution for more
8 // information.
9 
10 #ifndef _FORMAT_SPECIFIERS_H_
11 #define _FORMAT_SPECIFIERS_H_
12 
13 #if defined (_MSC_VER) || (__MINGW32__)
14  #define SIZE_T_SPECIFIER "%Iu"
15  #define SSIZE_T_SPECIFIER "%Id"
16  #define PTRDIFF_T_SPECIFIER "%Id"
17  #define LONG_LONG_SPECIFIER "%I64d"
18 #else
19  #define SIZE_T_SPECIFIER "%zu"
20  #define SSIZE_T_SPECIFIER "%zd"
21  #define PTRDIFF_T_SPECIFIER "%zd"
22  #define LONG_LONG_SPECIFIER "%lld"
23 #endif
24 
25 #endif