misc/libphysfs/lzma/CPP/7zip/Compress/LZMA/LZMARegister.cpp
changeset 13904 99b265e0d1d0
parent 13903 5f819b90d479
child 13905 b172a5d40eee
equal deleted inserted replaced
13903:5f819b90d479 13904:99b265e0d1d0
     1 // LZMARegister.cpp
       
     2 
       
     3 #include "StdAfx.h"
       
     4 
       
     5 #include "../../Common/RegisterCodec.h"
       
     6 
       
     7 #include "LZMADecoder.h"
       
     8 static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLZMA::CDecoder); }
       
     9 #ifndef EXTRACT_ONLY
       
    10 #include "LZMAEncoder.h"
       
    11 static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLZMA::CEncoder);  }
       
    12 #else
       
    13 #define CreateCodecOut 0
       
    14 #endif
       
    15 
       
    16 static CCodecInfo g_CodecInfo =
       
    17   { CreateCodec, CreateCodecOut, 0x030101, L"LZMA", 1, false };
       
    18 
       
    19 REGISTER_CODEC(LZMA)