Changeset 14039 for trunk


Ignore:
Timestamp:
06/02/12 15:39:36 (12 years ago)
Author:
tbretz
Message:
HAS_SQL -> HAVE_SQL
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/drivectrl.cc

    r14018 r14039  
    55#include <libnova/solar.h>
    66#include <libnova/rise_set.h>
     7#endif
     8
     9#ifdef HAVE_SQL
     10#include <mysql++/mysql++.h>
    711#endif
    812
     
    2024
    2125#include "tools.h"
    22 
    23 #define HAS_SQL
    24 
    25 #ifdef HAS_SQL
    26 #include <mysql++/mysql++.h>
    27 #endif
    2826
    2927#include "HeadersDrive.h"
     
    12271225    void ReadDatabase(bool print=true)
    12281226    {
     1227#ifdef HAVE_SQL
    12291228        //static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))?");
    12301229        static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))");
     
    12951294            }
    12961295        }
     1296#else
     1297        T::Warn("MySQL support not compiled into the program.");
     1298#endif
    12971299    }
    12981300
Note: See TracChangeset for help on using the changeset viewer.