1 /*====================================================================*
2  -  Copyright (C) 2001 Leptonica.  All rights reserved.
3  -  This software is distributed in the hope that it will be
4  -  useful, but with NO WARRANTY OF ANY KIND.
5  -  No author or distributor accepts responsibility to anyone for the
6  -  consequences of using this software, or for whether it serves any
7  -  particular purpose or works at all, unless he or she says so in
8  -  writing.  Everyone is granted permission to copy, modify and
9  -  redistribute this source code, for commercial or non-commercial
10  -  purposes, with the following restrictions: (1) the origin of this
11  -  source code must not be misrepresented; (2) modified versions must
12  -  be plainly marked as such; and (3) this notice may not be removed
13  -  or altered from any source or modified source distribution.
14  *====================================================================*/
15 
16 /*
17  *  gifiostub.c
18  *
19  *     Stubs for gifio.c functions
20  */
21 
22 #include <stdio.h>
23 #include "allheaders.h"
24 
25 #ifdef HAVE_CONFIG_H
26 #include "config_auto.h"
27 #endif  /* HAVE_CONFIG_H */
28 
29 /* -----------------------------------------------------------------*/
30 #if  (!HAVE_LIBGIF) && (!HAVE_LIBUNGIF)     /* defined in environ.h */
31 /* -----------------------------------------------------------------*/
32 
pixReadStreamGif(FILE * fp)33 PIX * pixReadStreamGif(FILE *fp)
34 {
35     return (PIX * )ERROR_PTR("function not present", "pixReadStreamGif", NULL);
36 }
37 
pixWriteStreamGif(FILE * fp,PIX * pix)38 l_int32 pixWriteStreamGif(FILE *fp, PIX *pix)
39 {
40     return ERROR_INT("function not present", "pixWriteStreamGif", 1);
41 }
42 
pixReadMemGif(const l_uint8 * cdata,size_t size)43 PIX * pixReadMemGif(const l_uint8 *cdata, size_t size)
44 {
45     return (PIX *)ERROR_PTR("function not present", "pixReadMemGif", NULL);
46 }
47 
48 /* -----------------------------------------------------------------*/
49 #endif      /* !HAVE_LIBGIF && !HAVE_LIBUNGIF */
50 /* -----------------------------------------------------------------*/
51 
52