~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to src/helper/bin2char.c

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <stdio.h>
22
22
#include <stdlib.h>
23
23
 
 
24
#ifdef _WIN32
 
25
 #include <fcntl.h>
 
26
#endif
 
27
 
24
28
int main(int argc, char **argv)
25
29
{
26
30
        int c;
34
38
                exit(1);
35
39
        }
36
40
 
 
41
#ifdef _WIN32
 
42
        /* for win32 set stdin/stdout to binary mode */
 
43
        _setmode(_fileno(stdin), _O_BINARY);
 
44
        _setmode(_fileno(stdout), _O_BINARY);
 
45
#endif
 
46
 
37
47
        n = 0;
38
48
        name = argv[1];
39
49
        fprintf(stdout, "/* autogenerated from %s */\n", argv[0]);