Standard Macros

Name

Standard Macros -- commonly-used macros.

Synopsis

#include <tiffep.h> (macros.h)


#define     TIFFEP_MAJOR_VERSION
#define     TIFFEP_MINOR_VERSION
#define     TIFFEP_MICRO_VERSION

#define     TIFFEP_CHECK_VERSION              (major,minor,micro)

#define     DIR_SEPARATOR_C
#define     DIR_SEPARATOR_S

Description

These macros provide a few commonly-used features.

Details

TIFFEP_MAJOR_VERSION

#define TIFFEP_MAJOR_VERSION 1

The major version number of the TiFFEP library.


TIFFEP_MINOR_VERSION

#define TIFFEP_MINOR_VERSION 2

The minor version number of the TiFFEP library.


TiFFEP_MICRO_VERSION

#define TIFFEP_MICRO_VERSION 3

The micro version number of the TiFFEP library.


TIFFEP_CHECK_VERSION()

#define     TIFFEP_CHECK_VERSION(major,minor,micro)

Checks the version of the TiFFEP library. It returns TRUE if the TiFFEP library is the same or newer than the given version.

Example 1. Checking the version of the TiFFEP library.
 
  if (!TIFFEP_CHECK_VERSION (1, 2, 0))
    g_error ("TiFFEP version 1.2.0 or above is needed");
 
major : the major version number.
minor : the minor version number.
micro : the micro version number. 

G_DIR_SEPARATOR_C

#define     G_DIR_SEPARATOR_C

The directory separator character. This is '/' on Unix machines and '\' under Windows.


G_DIR_SEPARATOR_S

#define     G_DIR_SEPARATOR_S

The directory separator as a string. This is "/" on Unix machines and "\" under Windows.