asserts
[oweals/gnunet.git] / src / util / os_installation.c
index a8789281e316393baf631b10c03467c985ad1605..7079e2fef204c9bec2c455226a9d737c209fa91b 100644 (file)
@@ -42,7 +42,7 @@ extern "C"
 #include "gnunet_configuration_lib.h"
 #include "gnunet_disk_lib.h"
 #include "gnunet_os_lib.h"
-#if OSX
+#if DARWIN
 #include <mach-o/ldsyms.h>
 #include <mach-o/dyld.h>
 #endif
@@ -137,7 +137,7 @@ get_path_from_module_filename ()
 }
 #endif
 
-#if OSX
+#if DARWIN
 typedef int (*MyNSGetExecutablePathProto) (char *buf, size_t * bufsize);
 
 static char *
@@ -285,7 +285,7 @@ os_get_gnunet_path ()
   if (ret != NULL)
     return ret;
 #endif
-#if OSX
+#if DARWIN
   ret = get_path_from_dyld_image ();
   if (ret != NULL)
     return ret;
@@ -298,8 +298,9 @@ os_get_gnunet_path ()
     return ret;
   /* other attempts here */
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-             _("Could not determine installation path for GNUnet.  Set `%s' environment variable.\n"),
-             "GNUNET_PREFIX");
+              _
+              ("Could not determine installation path for GNUnet.  Set `%s' environment variable.\n"),
+              "GNUNET_PREFIX");
   return NULL;
 }
 
@@ -325,7 +326,7 @@ os_get_exec_path ()
   if (ret != NULL)
     return ret;
 #endif
-#if OSX
+#if DARWIN
   ret = get_path_from_NSGetExecutablePath ();
   if (ret != NULL)
     return ret;
@@ -442,4 +443,4 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind)
 #ifdef __cplusplus
 }
 #endif
-/* end of installpath.c */
+/* end of os_installation.c */