diff options
author | Werner Koch <[email protected]> | 2010-11-15 08:40:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-11-15 08:40:30 +0000 |
commit | eef49ef4171011dec88156481cc70ee350cbbc92 (patch) | |
tree | 02356d813f53b27e4102cd22b6f99575b2b0bed0 /src/data-compat.c | |
parent | More changes for W32CE with MSC. (diff) | |
download | gpgme-eef49ef4171011dec88156481cc70ee350cbbc92.tar.gz gpgme-eef49ef4171011dec88156481cc70ee350cbbc92.zip |
Fixes for the MSC build
Diffstat (limited to 'src/data-compat.c')
-rw-r--r-- | src/data-compat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data-compat.c b/src/data-compat.c index bf615386..39c743ef 100644 --- a/src/data-compat.c +++ b/src/data-compat.c @@ -43,6 +43,9 @@ gpgme_error_t gpgme_data_new_from_filepart (gpgme_data_t *r_dh, const char *fname, FILE *stream, off_t offset, size_t length) { +#if defined (HAVE_W32CE_SYSTEM) && defined (_MSC_VER) + return gpgme_error (GPG_ERR_NOT_IMPLEMENTED); +#else gpgme_error_t err; char *buf = NULL; int res; @@ -111,6 +114,7 @@ gpgme_data_new_from_filepart (gpgme_data_t *r_dh, const char *fname, (*r_dh)->data.mem.length = length; return TRACE_SUC1 ("r_dh=%p", *r_dh); +#endif } @@ -119,6 +123,9 @@ gpgme_data_new_from_filepart (gpgme_data_t *r_dh, const char *fname, gpgme_error_t gpgme_data_new_from_file (gpgme_data_t *r_dh, const char *fname, int copy) { +#if defined (HAVE_W32CE_SYSTEM) && defined (_MSC_VER) + return gpgme_error (GPG_ERR_NOT_IMPLEMENTED); +#else gpgme_error_t err; struct stat statbuf; TRACE_BEG3 (DEBUG_DATA, "gpgme_data_new_from_filepart", r_dh, @@ -132,6 +139,7 @@ gpgme_data_new_from_file (gpgme_data_t *r_dh, const char *fname, int copy) err = gpgme_data_new_from_filepart (r_dh, fname, NULL, 0, statbuf.st_size); return TRACE_ERR (err); +#endif } |