Changeset 171


Ignore:
Timestamp:
Aug 23, 2010, 6:34:40 PM (10 years ago)
Author:
sam
Message:

Allow to build without libpipi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debugrecord.cpp

    r154 r171  
    1111#include <cstring>
    1212
    13 #include <pipi.h>
     13#if defined HAVE_PIPI_H
     14#   include <pipi.h>
     15#endif
    1416
    1517#include "core.h"
     
    2729    char const *path;
    2830    int width, height;
     31#if defined HAVE_PIPI_H
    2932    pipi_sequence_t *sequence;
     33#endif
    3034};
    3135
     
    4044    data->width = 0;
    4145    data->height = 0;
     46#if defined HAVE_PIPI_H
    4247    data->sequence = NULL;
     48#endif
    4349}
    4450
     
    6571        data->height = height;
    6672
     73#if defined HAVE_PIPI_H
    6774        if (data->sequence)
    6875            pipi_close_sequence(data->sequence);
    6976
    7077        data->sequence = pipi_open_sequence(data->path, width, height, 30);
     78#endif
    7179    }
    7280
     81#if defined HAVE_PIPI_H
    7382    if (data->sequence)
    7483    {
     
    7887        delete[] buffer;
    7988    }
     89#endif
    8090}
    8191
     
    8494    delete data;
    8595}
    86 
Note: See TracChangeset for help on using the changeset viewer.