summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/useragent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/useragent.c b/utils/useragent.c
index add5a7db7..7a752ecdd 100644
--- a/utils/useragent.c
+++ b/utils/useragent.c
@@ -27,7 +27,9 @@
static const char *core_user_agent_string = NULL;
+#ifndef NETSURF_UA_FORMAT_STRING
#define NETSURF_UA_FORMAT_STRING "NetSurf/%d.%d (%s; %s)"
+#endif
/**
* Prepare core_user_agent_string with a string suitable for use as a
@@ -75,5 +77,5 @@ user_agent_string(void)
{
if (core_user_agent_string == NULL)
user_agent_build_string();
- return core_user_agent_string;
}
+