summaryrefslogtreecommitdiff
path: root/src/conf_post.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-04-03 17:30:48 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-04-03 17:32:16 -0700
commit9b0e8a4c6b540dcb962607763846040942858c5a (patch)
tree42524279c8d6bbf3f61e5588351ea6c4e3f03a85 /src/conf_post.h
parent3deaac1bd9569fd57185e9e6256cc8419323ba78 (diff)
downloademacs-9b0e8a4c6b540dcb962607763846040942858c5a.tar.gz
Pacify GCC when --enable-profiling
* src/conf_post.h (PROFILING): Undef if not on a platform that supports it. Simplify uses accordingly. * src/emacs.c (etext) [PROFILING]: Declare at top level to avoid GCC warning.
Diffstat (limited to 'src/conf_post.h')
-rw-r--r--src/conf_post.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_post.h b/src/conf_post.h
index 69f686d72df..00e283d289c 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -344,6 +344,10 @@ extern int emacs_setenv_TZ (char const *);
# define vfork fork
#endif
+#if ! (defined __FreeBSD__ || defined GNU_LINUX || defined __MINGW32__)
+# undef PROFILING
+#endif
+
/* Some versions of GNU/Linux define noinline in their headers. */
#ifdef noinline
#undef noinline