* http://goodliffe.blogspot.com/2009/07/c-how-to-say-warning-to-visual-studio-c.html
*/
-#define STRINGIZE_HELPER(x) #x
-#define STRINGIZE(x) STRINGIZE_HELPER(x)
-#define WARNING(desc) message(__FILE__ "(" STRINGIZE(__LINE__) ") : Warning: " #desc)
+#define DEAL_II_STRINGIZE_HELPER(x) #x
+#define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
+#define DEAL_II_WARNING(desc) message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : Warning: " #desc)
/***********************************************************************
* Final inclusions:
#include <deal.II/base/config.h>
-#pragma WARNING( \
+#pragma DEAL_II_WARNING( \
"This file is deprecated. Use <deal.II/differentiation/ad/sacado_product_types.h> instead.")
#include <deal.II/differentiation/ad/sacado_product_types.h>
#include <deal.II/dofs/deprecated_function_map.h>
-#pragma WARNING("This file is deprecated.")
+#pragma DEAL_II_WARNING("This file is deprecated.")
#endif
#include <deal.II/base/config.h>
-#pragma WARNING("This file is deprecated. Use the Manifold classes instead.")
+#pragma DEAL_II_WARNING( \
+ "This file is deprecated. Use the Manifold classes instead.")
#endif
#include <deal.II/base/config.h>
-#pragma WARNING("This file is deprecated.Use the Manifold classes instead.")
+#pragma DEAL_II_WARNING( \
+ "This file is deprecated.Use the Manifold classes instead.")
#endif
#ifndef dealii_constraint_matrix_h
#define dealii_constraint_matrix_h
-#pragma WARNING( \
+#include <deal.II/base/config.h>
+
+#pragma DEAL_II_WARNING( \
"This file is deprecated. Use <deal.II/lac/affine_constraints.h> instead.")
#include <deal.II/lac/affine_constraints.h>
#include <deal.II/lac/la_parallel_block_vector.h>
-#pragma WARNING( \
+#pragma DEAL_II_WARNING( \
"This file is deprecated. Use <deal.II/lac/la_block_vector.h> and LinearAlgebra::distributed::BlockVector instead.")
#include <cstring>
#include <deal.II/lac/la_parallel_vector.h>
-#pragma WARNING( \
+#pragma DEAL_II_WARNING( \
"This file is deprecated. Use <deal.II/lac/la_parallel_vector.h> and LinearAlgebra::distributed::Vector instead.")
#include <cstring>
getrusage(RUSAGE_SELF, &usage);
system_cpu_duration = usage.ru_utime.tv_sec + 1.e-6 * usage.ru_utime.tv_usec;
#else
-# pragma WARNING("Unsupported platform. Porting not finished.")
+# pragma DEAL_II_WARNING("Unsupported platform. Porting not finished.")
#endif
return time_point(
internal::TimerImplementation::from_seconds<duration>(system_cpu_duration));