/ Check-in [4fdafd3f]
Login

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

Overview
Comment:If preprocessor macro OS_OTHER is defined, then ignore OS_UNIX, OS_WIN, and OS_OS2. This makes it easier to add proprietary backends.. (CVS 3801)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4fdafd3f583b1ec4aa7fb6a9b5de2f52a375832b
User & Date: drh 2007-04-02 16:45:13
Context
2007-04-02
16:46
Add a different form of I/O tests. So far has failed to expose new bugs. (CVS 3802) check-in: 9e129542 user: danielk1977 tags: trunk
16:45
If preprocessor macro OS_OTHER is defined, then ignore OS_UNIX, OS_WIN, and OS_OS2. This makes it easier to add proprietary backends.. (CVS 3801) check-in: 4fdafd3f user: drh tags: trunk
16:40
Provide a compile-time option to enable exclusive access mode by default. (CVS 3800) check-in: 93a41510 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/os.h.

    17     17   #ifndef _SQLITE_OS_H_
    18     18   #define _SQLITE_OS_H_
    19     19   
    20     20   /*
    21     21   ** Figure out if we are dealing with Unix, Windows, or some other
    22     22   ** operating system.
    23     23   */
           24  +#if defined(OS_OTHER)
           25  +# if OS_OTHER==1
           26  +#   undef OS_UNIX
           27  +#   define OS_UNIX 0
           28  +#   undef OS_WIN
           29  +#   define OS_WIN 0
           30  +#   undef OS_OS2
           31  +#   define OS_OS2 0
           32  +# else
           33  +#   undef OS_OTHER
           34  +# endif
           35  +#endif
    24     36   #if !defined(OS_UNIX) && !defined(OS_OTHER)
    25     37   # define OS_OTHER 0
    26     38   # ifndef OS_WIN
    27     39   #   if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
    28     40   #     define OS_WIN 1
    29     41   #     define OS_UNIX 0
    30     42   #     define OS_OS2 0