Changeset 77da65 for molecuilder


Ignore:
Timestamp:
Apr 24, 2008, 5:03:14 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
41d75d
Parents:
e58fcb7
Message:

ADDHYDROGEN and HAVE_DEBUG fix: config.h was not yet included

Misunderstanding of DHAVE_CONFIG_H lead to the believe it would get included also automatically. Now, helpers.hpp and parser.hpp both have it included if HAVE_CONFIG_H is present. Consequently, ADDHYDROGEN and HAVE_DEBUG now work.

Location:
molecuilder/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/helpers.hpp

    re58fcb7 r77da65  
    2020
    2121#include "defs.hpp"
     22
     23// include config.h
     24#ifdef HAVE_CONFIG_H
     25#include <config.h>
     26#endif
    2227
    2328/********************************************** helpful functions *********************************/
  • molecuilder/src/molecules.hpp

    re58fcb7 r77da65  
    1919#include <set>
    2020#include <deque>
    21 
    22 // system specific headers
    23 #include <time.h>
    24 
    2521
    2622#include "helpers.hpp"
  • molecuilder/src/parser.cpp

    re58fcb7 r77da65  
    55 */
    66
    7 using namespace std;
    8 
    97// ======================================= INCLUDES ==========================================
    108
     
    1917 */
    2018#ifdef HAVE_INLINE
    21 inline
     19inline bool FilePresent(const char *filename)
     20#else
     21bool FilePresent(const char *filename)
    2222#endif
    23 bool FilePresent(const char *filename)
    2423{
    2524  ifstream input;
     
    3938 * \return given inputdir is valid
    4039 */
    41 #ifdef HAVE_INLINE
    42 inline
    43 #endif
    4440bool TestParams(int argc, char **argv)
    4541{
  • molecuilder/src/parser.hpp

    re58fcb7 r77da65  
    99#define PARSING_HPP_
    1010
     11using namespace std;
     12
     13// include config.h
     14#ifdef HAVE_CONFIG_H
     15#include <config.h>
     16#endif
     17
    1118// ======================================= DEFINES ==========================================
    1219
    13 #define MYEPSILON 1e-13
    1420#define FactorsFile "BondFragmentTE-Factors.dat"
    1521#define ForcesFile "BondFragmentForces-Factors.dat"
     
    2632
    2733#ifdef HAVE_INLINE
    28 inline
     34inline bool FilePresent(const char *filename);
     35#else
     36bool FilePresent(const char *filename);
    2937#endif
    30 bool FilePresent(const char *filename);
    3138
    32 #ifdef HAVE_INLINE
    33 inline
    34 #endif
    3539bool TestParams(int argc, char **argv);
     40
    3641
    3742// ======================================= CLASS MatrixContainer =============================
Note: See TracChangeset for help on using the changeset viewer.