]> granicus.if.org Git - libass/commitdiff
Start unifying names of internal preprocessor directives.
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 30 Jul 2008 12:01:30 +0000 (12:01 +0000)
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 30 Jul 2008 12:01:30 +0000 (12:01 +0000)
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c
libass/ass_mp.c

index 55a4a79b7fcd3b10c67a13857e2e423c4a237655..659f08c4e3d8063d2ee071d91217823527962289 100644 (file)
@@ -32,7 +32,7 @@
 #include <unistd.h>
 #include <inttypes.h>
 
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
 #include <iconv.h>
 #endif
 
@@ -810,7 +810,7 @@ void ass_process_chunk(ass_track_t* track, char *data, int size, long long timec
        free(str);
 }
 
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
 /** \brief recode buffer to utf-8
  * constraint: codepage != 0
  * \param data pointer to text buffer
@@ -991,7 +991,7 @@ ass_track_t* ass_read_memory(ass_library_t* library, char* buf, size_t bufsize,
        if (!buf)
                return 0;
        
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
        if (codepage)
                buf = sub_recode(buf, bufsize, codepage);
        if (!buf)
@@ -1017,7 +1017,7 @@ char* read_file_recode(char* fname, char* codepage, int* size)
        buf = read_file(fname, &bufsize);
        if (!buf)
                return 0;
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
        if (codepage) {
                 char* tmpbuf = sub_recode(buf, bufsize, codepage);
                 free(buf);
@@ -1071,7 +1071,7 @@ int ass_read_styles(ass_track_t* track, char* fname, char* codepage)
        buf = read_file(fname, &sz);
        if (!buf)
                return 1;
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
        if (codepage) {
                char* tmpbuf;
                tmpbuf = sub_recode(buf, sz, codepage);
index 97b5f59c87136d48a6049f90282f473ac8eb0f3a..063580e0e5d92be91a1e7464e003a13b49422358 100644 (file)
@@ -65,7 +65,7 @@ extern char* sub_font_name;
 extern float text_font_scale_factor;
 extern int subtitle_autoscale;
 
-#ifdef USE_ICONV
+#ifdef CONFIG_ICONV
 extern char* sub_cp;
 #else
 static char* sub_cp = 0;