Changeset 301

Show
Ignore:
Timestamp:
02/09/05 21:19:25 (8 years ago)
Author:
ahu
Message:

Add warning when compiling with 2.95 or older

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnspacket.hh

    r263 r301  
    11/* 
    22    PowerDNS Versatile Database Driven Nameserver 
    3     Copyright (C) 2002  PowerDNS.COM BV 
    4  
    5     This program is free software; you can redistribute it and/or modify 
    6     it under the terms of the GNU General Public License as published by 
    7     the Free Software Foundation; either version 2 of the License, or 
    8     (at your option) any later version. 
     3    Copyright (C) 2005  PowerDNS.COM BV 
     4 
     5    This program is free software; you can redistribute it and/or modify it 
     6    under the terms of the GNU General Public License version 2 as published 
     7    by the Free Software Foundation 
    98 
    109    This program is distributed in the hope that it will be useful, 
     
    1716    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1817*/ 
    19 // $Id: dnspacket.hh,v 1.17 2004/12/13 15:53:32 ahu Exp $ 
    2018#ifndef DNSPACKET_HH 
     19 
     20#if __GNUC__ == 2 
     21#if __GNUC_MINOR__ < 95 
     22        #error Your compiler is too old! Try g++ 3.3 or higher 
     23#else 
     24        #warning There are known problems with PowerDNS binaries compiled by gcc version 2.95 and 2.96! 
     25#endif 
     26#endif 
     27 
    2128#define DNSPACKET_HH 
    2229