]> granicus.if.org Git - icu/commitdiff
ICU-9312 #ifdef U_ENABLE_DYLOAD cleanup in icuplug.c
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 10 May 2012 23:52:23 +0000 (23:52 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 10 May 2012 23:52:23 +0000 (23:52 +0000)
X-SVN-Rev: 31809

icu4c/source/common/icuplug.c

index e30c5ba88786f27dc54b2d682b8ed6fccaa9edf8..0c38be1c51e461ce399145faefd975441882d69d 100644 (file)
@@ -538,6 +538,7 @@ uplug_loadPlugFromEntrypoint(UPlugEntrypoint *entrypoint, const char *config, UE
   return plug;
 }
 
+#if U_ENABLE_DYLOAD
 
 static UPlugData* 
 uplug_initErrorPlug(const char *libName, const char *sym, const char *config, const char *nameOrError, UErrorCode loadStatus, UErrorCode *status)
@@ -571,9 +572,6 @@ uplug_initErrorPlug(const char *libName, const char *sym, const char *config, co
 /**
  * Fetch a plugin from DLL, and then initialize it from a library- but don't load it.
  */
-
-#if U_ENABLE_DYLOAD
-
 static UPlugData* 
 uplug_initPlugFromLibrary(const char *libName, const char *sym, const char *config, UErrorCode *status) {
   void *lib = NULL;
@@ -641,6 +639,8 @@ static UBool U_CALLCONV uplug_cleanup(void)
   return TRUE;
 }
 
+#if U_ENABLE_DYLOAD
+
 static void uplug_loadWaitingPlugs(UErrorCode *status) {
   int32_t i;
   UPlugLevel currentLevel = uplug_getCurrentLevel();
@@ -693,7 +693,6 @@ static void uplug_loadWaitingPlugs(UErrorCode *status) {
 #endif
 }
 
-#if U_ENABLE_DYLOAD
 /* Name of the plugin config file */
 static char plugin_file[2048] = "";
 #endif