[cig-commits] [commit] devel, master: Fix warning about doubly-defined macro. (5bec0e8)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:20:41 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit 5bec0e8d11179721fc2b35f91a4bc1a99b9a3b70
Author: Elliott Sales de Andrade <esalesde at physics.utoronto.ca>
Date:   Sun Jun 1 21:34:24 2014 -0400

    Fix warning about doubly-defined macro.


>---------------------------------------------------------------

5bec0e8d11179721fc2b35f91a4bc1a99b9a3b70
 src/shared/param_reader.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/shared/param_reader.c b/src/shared/param_reader.c
index 0595e1e..13b4a74 100644
--- a/src/shared/param_reader.c
+++ b/src/shared/param_reader.c
@@ -56,7 +56,9 @@ by Dennis McRitchie (Princeton University, USA)
 #include <string.h>
 #include <regex.h>
 
+#ifndef LINE_MAX
 #define LINE_MAX 255
+#endif
 
 /*
  * Mac OS X's gcc does not support strnlen and strndup.



More information about the CIG-COMMITS mailing list