]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added in pre-processor check to see if signals is already defined. If so, alert the... 10724/head
authorPhillip Mobley <phillipmobley2@gmail.com>
Thu, 23 Jul 2020 03:00:56 +0000 (23:00 -0400)
committerPhillip Mobley <phillipmobley2@gmail.com>
Thu, 23 Jul 2020 14:43:02 +0000 (10:43 -0400)
include/deal.II/grid/tria.h
include/deal.II/multigrid/multigrid.h

index d5d7652f1c4f37c40fac328b9f7895e9218b7550..1398971ca941ae6f1459e65dfd3daac067f95f85 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
+#ifdef signals
+#  error \
+    "The data type signals is already defined. You are most likely using the QT library \
+and using the signals keyword. You can either #include the Qt headers (or any conflicting headers) \
+after the deal.ii headers or you can define the QT_NO_KEYWORDS marco and use the Q_SIGNALS macro."
+#endif
+
 // Forward declarations
 #ifndef DOXYGEN
 template <int dim, int spacedim>
index d8ed117e1ba863a2e42d48a36e0520394e7f4d36..86619433939585ef43412d686df35f073dee8f4e 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
+#ifdef signals
+#  error \
+    "The data type signals is already defined. You are most likely using the QT library \
+and using the signals keyword. You can either #include the Qt headers (or any conflicting headers) \
+after the deal.ii headers or you can define the QT_NO_KEYWORDS marco and use the Q_SIGNALS macro."
+#endif
+
 /*!@addtogroup mg */
 /*@{*/
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.