From 3dab974276d6a99794e4dd33622a1dc098e4a27c Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 21 Oct 2004 17:42:53 +0000 Subject: [PATCH] c++/c fixes --- pdf2swf/pdf2swf.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index 824657b..c943c69 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -33,9 +33,7 @@ #endif #include "../lib/args.h" #include "SWFOutputDev.h" -extern "C" { #include "log.h" -} #ifndef WIN32 #define FONTDIR SWFTOOLS_DATADIR "/fonts" @@ -344,7 +342,7 @@ void args_callback_usage(char*name) } #ifdef HAVE_DIRENT_H -void addfontdir(char* dirname, int*numfonts) +static void addfontdir(char* dirname, int*numfonts) { if(!numfonts) msg(" Adding %s to search path\n", dirname); @@ -354,7 +352,7 @@ void addfontdir(char* dirname, int*numfonts) msg(" Couldn't open directory %s\n", dirname); return; } - dirent*ent; + struct dirent*ent; while(1) { ent = readdir (dir); if (!ent) @@ -393,7 +391,7 @@ void addfontdir(char* dirname, int*numfonts) } #endif -char* stripfilename(char*filename, char*newext) +static char* stripfilename(char*filename, char*newext) { char*last1 = strrchr(filename, '/'); char*last2 = strrchr(filename, '\\'); @@ -540,4 +538,3 @@ int main(int argn, char *argv[]) return 0; } - -- 1.7.10.4