summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/hud/hud_private.h
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-11-29 14:19:26 +0000
committerEric Engestrom <[email protected]>2017-12-01 13:49:42 +0000
commit29ee934331ce624ce4c30750ce0e8d4baa5eb2fa (patch)
treeb9e05c0b89c38988871b2ad2b00e7396813ca15a /src/gallium/auxiliary/hud/hud_private.h
parent13a7a2d4557a068fbf86af9eaa43b600fa8bce88 (diff)
gallium/hud: use #ifdef to test for macro existence
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r--src/gallium/auxiliary/hud/hud_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h
index 7f0294badd3..9e8d74c2f88 100644
--- a/src/gallium/auxiliary/hud/hud_private.h
+++ b/src/gallium/auxiliary/hud/hud_private.h
@@ -178,7 +178,7 @@ void hud_batch_query_update(struct hud_batch_query_context *bq,
void hud_batch_query_cleanup(struct hud_batch_query_context **pbq,
struct pipe_context *pipe);
-#if HAVE_GALLIUM_EXTRA_HUD
+#ifdef HAVE_GALLIUM_EXTRA_HUD
int hud_get_num_nics(bool displayhelp);
#define NIC_DIRECTION_RX 1
#define NIC_DIRECTION_TX 2
@@ -199,7 +199,7 @@ int hud_get_num_cpufreq(bool displayhelp);
void hud_cpufreq_graph_install(struct hud_pane *pane, int cpu_index, unsigned int mode);
#endif
-#if HAVE_LIBSENSORS
+#ifdef HAVE_LIBSENSORS
int hud_get_num_sensors(bool displayhelp);
#define SENSORS_TEMP_CURRENT 1
#define SENSORS_TEMP_CRITICAL 2