Mercurial > dwindows
comparison compat.c @ 647:f09977bc9b5c
Fixed building with Visual Studio 2008.
Fixed a conflict with a C library function _free_locale and switched back to linking with the static library.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 19 Feb 2011 00:00:19 +0000 |
parents | d7c338ac926a |
children | 3e2ada9ee0ac |
comparison
equal
deleted
inserted
replaced
646:5ea195fd28da | 647:f09977bc9b5c |
---|---|
649 } | 649 } |
650 | 650 |
651 static int locale_number = -1, locale_count = 0; | 651 static int locale_number = -1, locale_count = 0; |
652 static char **locale_text = NULL; | 652 static char **locale_text = NULL; |
653 | 653 |
654 void _free_locale(void) | 654 void _compat_free_locale(void) |
655 { | 655 { |
656 if(locale_text) | 656 if(locale_text) |
657 { | 657 { |
658 int z; | 658 int z; |
659 | 659 |
718 { | 718 { |
719 FILE *fp = fopen(filename, FOPEN_READ_TEXT); | 719 FILE *fp = fopen(filename, FOPEN_READ_TEXT); |
720 static char text[1025]; | 720 static char text[1025]; |
721 int count = 0; | 721 int count = 0; |
722 | 722 |
723 _free_locale(); | 723 _compat_free_locale(); |
724 | 724 |
725 if(fp) | 725 if(fp) |
726 { | 726 { |
727 | 727 |
728 fgets(text, 1024, fp); | 728 fgets(text, 1024, fp); |