[poppler] goo/glibc.h

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Dec 12 23:08:18 UTC 2017


 goo/glibc.h |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 3690e96154b226025b465ac2260cf1ff2d269abd
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Dec 13 00:07:20 2017 +0100

    Remove the extern C from glib.h
    
    Apparently this fixes build with MSVC
    
    Bug #103621

diff --git a/goo/glibc.h b/goo/glibc.h
index 8b372bca..ccbd8736 100644
--- a/goo/glibc.h
+++ b/goo/glibc.h
@@ -7,6 +7,7 @@
 // This file is licensed under the GPLv2 or later
 //
 // Copyright (C) 2016, 2017 Adrian Johnson <ajohnson at redneon.com>
+// Copyright (C) 2017 Albert Astals Cid <aacid at kde.org>
 //
 //========================================================================
 
@@ -17,8 +18,6 @@
 
 #include <time.h>
 
-extern "C" {
-
 #ifndef HAVE_GMTIME_R
 struct tm *gmtime_r(const time_t *timep, struct tm *result);
 #endif
@@ -35,7 +34,5 @@ time_t timegm(struct tm *tm);
 char * strtok_r (char *s, const char *delim, char **save_ptr);
 #endif
 
-}
-
 #endif // GLIBC_H
 


More information about the poppler mailing list