Blame src/terminal-version.h.in

Packit Service 3bdf47
/*
Packit Service 3bdf47
 * Copyright © 2009 Christian Persch
Packit Service 3bdf47
 *
Packit Service 3bdf47
 * This program is free software: you can redistribute it and/or modify
Packit Service 3bdf47
 * it under the terms of the GNU General Public License as published by
Packit Service 3bdf47
 * the Free Software Foundation, either version 3 of the License, or
Packit Service 3bdf47
 * (at your option) any later version.
Packit Service 3bdf47
 *
Packit Service 3bdf47
 * This program is distributed in the hope that it will be useful,
Packit Service 3bdf47
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 3bdf47
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 3bdf47
 * GNU General Public License for more details.
Packit Service 3bdf47
 *
Packit Service 3bdf47
 * You should have received a copy of the GNU General Public License
Packit Service 3bdf47
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service 3bdf47
 */
Packit Service 3bdf47
Packit Service 3bdf47
#if !defined (__TERMINAL_TERMINAL_H_INSIDE__) && !defined (TERMINAL_COMPILATION)
Packit Service 3bdf47
#error "Only <terminal/terminal.h> can be included directly."
Packit Service 3bdf47
#endif
Packit Service 3bdf47
Packit Service 3bdf47
#ifndef TERMINAL_VERSION_H
Packit Service 3bdf47
#define TERMINAL_VERSION_H
Packit Service 3bdf47
Packit Service 3bdf47
#define TERMINAL_MAJOR_VERSION (@TERMINAL_MAJOR_VERSION@)
Packit Service 3bdf47
#define TERMINAL_MINOR_VERSION (@TERMINAL_MINOR_VERSION@)
Packit Service 3bdf47
#define TERMINAL_MICRO_VERSION (@TERMINAL_MICRO_VERSION@)
Packit Service 3bdf47
Packit Service 3bdf47
#define TERMINAL_CHECK_VERSION(major,minor,micro) \
Packit Service 3bdf47
  (TERMINAL_MAJOR_VERSION > (major) || \
Packit Service 3bdf47
   (TERMINAL_MAJOR_VERSION == (major) && TERMINAL_MINOR_VERSION > (minor)) || \
Packit Service 3bdf47
   (TERMINAL_MAJOR_VERSION == (major) && TERMINAL_MINOR_VERSION == (minor) && TERMINAL_MICRO_VERSION >= (micro)))
Packit Service 3bdf47
Packit Service 3bdf47
#endif /* !TERMINAL_VERSION_H */