Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poppler
poppler
Commits
36e8194a
Commit
36e8194a
authored
Jun 06, 2014
by
Carlos Garcia Campos
Browse files
xpdf304: Use the correct _WIN32 define instead of WIN32
parent
e94ff24d
Changes
4
Hide whitespace changes
Inline
Side-by-side
goo/gfile.cc
View file @
36e8194a
...
...
@@ -422,7 +422,7 @@ GBool openTempFile(GooString **name, FILE **f, const char *mode) {
#endif
}
#ifdef WIN32
#ifdef
_
WIN32
GooString
*
fileNameToUTF8
(
char
*
path
)
{
GooString
*
s
;
char
*
p
;
...
...
@@ -461,7 +461,7 @@ GooString *fileNameToUTF8(wchar_t *path) {
#endif
FILE
*
openFile
(
const
char
*
path
,
const
char
*
mode
)
{
#ifdef WIN32
#ifdef
_
WIN32
OSVERSIONINFO
version
;
wchar_t
wPath
[
_MAX_PATH
+
1
];
char
nPath
[
_MAX_PATH
+
1
];
...
...
goo/gfile.h
View file @
36e8194a
...
...
@@ -104,7 +104,7 @@ extern time_t getModTime(char *fileName);
// should be "w" or "wb". Returns true on success.
extern
GBool
openTempFile
(
GooString
**
name
,
FILE
**
f
,
const
char
*
mode
);
#ifdef WIN32
#ifdef
_
WIN32
// Convert a file name from Latin-1 to UTF-8.
extern
GooString
*
fileNameToUTF8
(
char
*
path
);
...
...
poppler/GlobalParams.cc
View file @
36e8194a
...
...
@@ -270,7 +270,7 @@ public:
~
SysFontList
();
SysFontInfo
*
find
(
GooString
*
name
,
GBool
isFixedWidth
,
GBool
exact
);
#ifdef WIN32
#ifdef
_
WIN32
void
scanWindowsFonts
(
GooString
*
winFontDir
);
#endif
#ifdef WITH_FONTCONFIGURATION_FONTCONFIG
...
...
@@ -278,7 +278,7 @@ public:
#endif
private:
#ifdef WIN32
#ifdef
_
WIN32
SysFontInfo
*
makeWindowsFont
(
char
*
name
,
int
fontNum
,
char
*
path
);
#endif
...
...
@@ -1121,7 +1121,7 @@ static FcPattern *buildFcPattern(GfxFont *font, GooString *base14Name)
GooString
*
GlobalParams
::
findFontFile
(
GooString
*
fontName
)
{
static
const
char
*
exts
[]
=
{
".pfa"
,
".pfb"
,
".ttf"
,
".ttc"
,
".otf"
};
GooString
*
path
,
*
dir
;
#ifdef WIN32
#ifdef
_
WIN32
GooString
*
fontNameU
;
#endif
const
char
*
ext
;
...
...
@@ -1139,7 +1139,7 @@ GooString *GlobalParams::findFontFile(GooString *fontName) {
dir
=
(
GooString
*
)
fontDirs
->
get
(
i
);
for
(
j
=
0
;
j
<
(
int
)(
sizeof
(
exts
)
/
sizeof
(
exts
[
0
]));
++
j
)
{
ext
=
exts
[
j
];
#ifdef WIN32
#ifdef
_
WIN32
fontNameU
=
fileNameToUTF8
(
fontName
->
getCString
());
path
=
appendToPath
(
dir
->
copy
(),
fontNameU
->
getCString
());
delete
fontNameU
;
...
...
splash/SplashMath.h
View file @
36e8194a
...
...
@@ -64,7 +64,7 @@ static inline int splashFloor(SplashCoord x) {
:
"=m"
(
oldCW
),
"=m"
(
newCW
),
"=m"
(
result
),
"=r"
(
t
)
:
"m"
(
x
));
return
result
;
#elif defined(WIN32) && defined(_M_IX86)
#elif defined(
_
WIN32) && defined(_M_IX86)
// floor() and (int)() are implemented separately, which results
// in changing the FPCW multiple times - so we optimize it with
// some inline assembly
...
...
@@ -111,7 +111,7 @@ static inline int splashCeil(SplashCoord x) {
:
"=m"
(
oldCW
),
"=m"
(
newCW
),
"=m"
(
result
),
"=r"
(
t
)
:
"m"
(
x
));
return
result
;
#elif defined(WIN32) && defined(_M_IX86)
#elif defined(
_
WIN32) && defined(_M_IX86)
// ceil() and (int)() are implemented separately, which results
// in changing the FPCW multiple times - so we optimize it with
// some inline assembly
...
...
@@ -156,7 +156,7 @@ static inline int splashRound(SplashCoord x) {
:
"=m"
(
oldCW
),
"=m"
(
newCW
),
"=m"
(
result
),
"=r"
(
t
)
:
"m"
(
x
));
return
result
;
#elif defined(WIN32) && defined(_M_IX86)
#elif defined(
_
WIN32) && defined(_M_IX86)
// this could use round-to-nearest mode and avoid the "+0.5",
// but that produces slightly different results (because i+0.5
// sometimes rounds up and sometimes down using the even rule)
...
...
Write
Preview
Supports
Markdown
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