/ Check-in [bc5abd31]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Define _GNU_SOURCE only if it is not already defined. Ticket #3263. (CVS 5514)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bc5abd31a7b5bc656edbb54c1c4523549d888056
User & Date: drh 2008-07-31 17:35:45
Context
2008-08-01
10:50
If xAccess() fails while attempting to detect a hot-journal file, do not assume that the error was an out-of-memory condition. (CVS 5515) check-in: 70f20425 user: danielk1977 tags: trunk
2008-07-31
17:35
Define _GNU_SOURCE only if it is not already defined. Ticket #3263. (CVS 5514) check-in: bc5abd31 user: drh tags: trunk
17:20
Update the memsubsys1 test script to take into account the buffer size changes of the previous check-in. (CVS 5513) check-in: d43ff7bb user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Internal interface definitions for SQLite.
    13     13   **
    14         -** @(#) $Id: sqliteInt.h,v 1.747 2008/07/28 19:34:54 drh Exp $
           14  +** @(#) $Id: sqliteInt.h,v 1.748 2008/07/31 17:35:45 drh Exp $
    15     15   */
    16     16   #ifndef _SQLITEINT_H_
    17     17   #define _SQLITEINT_H_
    18     18   
    19     19   /*
    20     20   ** Include the configuration header output by 'configure' if we're using the
    21     21   ** autoconf-based build
................................................................................
    32     32   #pragma warn -ccc /* Condition is always true or false */
    33     33   #pragma warn -aus /* Assigned value is never used */
    34     34   #pragma warn -csu /* Comparing signed and unsigned */
    35     35   #pragma warn -spa /* Suspicous pointer arithmetic */
    36     36   #endif
    37     37   
    38     38   /* Needed for various definitions... */
    39         -#define _GNU_SOURCE
           39  +#ifndef _GNU_SOURCE
           40  +# define _GNU_SOURCE
           41  +#endif
    40     42   
    41     43   /*
    42     44   ** Include standard header files as necessary
    43     45   */
    44     46   #ifdef HAVE_STDINT_H
    45     47   #include <stdint.h>
    46     48   #endif